Thomas Pelletier
|
95c701b253
|
Increase test coverage (#538)
Also fix array in map bug.
|
2021-05-10 20:17:05 -04:00 |
|
Thomas Pelletier
|
ea225df3ed
|
v2: errors (#534)
```
name old time/op new time/op delta
UnmarshalDataset/config-32 86.7ms ± 2% 87.5ms ± 2% ~ (p=0.113 n=9+10)
UnmarshalDataset/canada-32 129ms ± 4% 106ms ± 3% -17.94% (p=0.000 n=10+10)
UnmarshalDataset/citm_catalog-32 59.4ms ± 5% 58.7ms ± 5% ~ (p=0.393 n=10+10)
UnmarshalDataset/twitter-32 27.0ms ± 7% 26.9ms ± 6% ~ (p=0.720 n=10+9)
UnmarshalDataset/code-32 326ms ± 4% 322ms ± 7% ~ (p=0.661 n=9+10)
UnmarshalDataset/example-32 510µs ±11% 526µs ± 7% ~ (p=0.182 n=10+9)
UnmarshalSimple-32 1.41µs ± 6% 1.41µs ± 4% ~ (p=0.736 n=10+9)
ReferenceFile-32 45.6µs ± 3% 43.9µs ±10% ~ (p=0.089 n=10+10)
name old speed new speed delta
UnmarshalDataset/config-32 12.1MB/s ± 2% 12.0MB/s ± 2% ~ (p=0.108 n=9+10)
UnmarshalDataset/canada-32 17.1MB/s ± 4% 20.9MB/s ± 3% +21.86% (p=0.000 n=10+10)
UnmarshalDataset/citm_catalog-32 9.41MB/s ± 5% 9.51MB/s ± 5% ~ (p=0.362 n=10+10)
UnmarshalDataset/twitter-32 16.4MB/s ± 8% 16.5MB/s ± 6% ~ (p=0.704 n=10+9)
UnmarshalDataset/code-32 8.24MB/s ± 4% 8.34MB/s ± 7% ~ (p=0.675 n=9+10)
UnmarshalDataset/example-32 15.9MB/s ±11% 15.4MB/s ± 7% ~ (p=0.182 n=10+9)
ReferenceFile-32 115MB/s ± 4% 120MB/s ±10% ~ (p=0.085 n=10+10)
name old alloc/op new alloc/op delta
UnmarshalDataset/config-32 16.9MB ± 0% 16.9MB ± 0% -0.02% (p=0.000 n=10+10)
UnmarshalDataset/canada-32 76.8MB ± 0% 74.3MB ± 0% -3.31% (p=0.000 n=10+10)
UnmarshalDataset/citm_catalog-32 37.3MB ± 0% 37.1MB ± 0% -0.60% (p=0.000 n=9+10)
UnmarshalDataset/twitter-32 15.6MB ± 0% 15.6MB ± 0% -0.09% (p=0.000 n=10+10)
UnmarshalDataset/code-32 60.2MB ± 0% 59.3MB ± 0% -1.51% (p=0.000 n=10+9)
UnmarshalDataset/example-32 238kB ± 0% 238kB ± 0% -0.18% (p=0.000 n=10+10)
ReferenceFile-32 11.8kB ± 0% 11.8kB ± 0% ~ (all equal)
name old allocs/op new allocs/op delta
UnmarshalDataset/config-32 653k ± 0% 645k ± 0% -1.20% (p=0.000 n=10+6)
UnmarshalDataset/canada-32 1.01M ± 0% 0.90M ± 0% -11.04% (p=0.000 n=9+10)
UnmarshalDataset/citm_catalog-32 384k ± 0% 370k ± 0% -3.75% (p=0.000 n=10+10)
UnmarshalDataset/twitter-32 160k ± 0% 157k ± 0% -1.32% (p=0.000 n=10+10)
UnmarshalDataset/code-32 2.97M ± 0% 2.91M ± 0% -2.15% (p=0.000 n=10+7)
UnmarshalDataset/example-32 3.69k ± 0% 3.63k ± 0% -1.52% (p=0.000 n=10+10)
ReferenceFile-32 253 ± 0% 253 ± 0% ~ (all equal)
```
|
2021-05-08 16:04:25 -04:00 |
|
Vincent Serpoul
|
3f2bb0b363
|
golangci-lint (#530)
|
2021-05-06 22:29:21 -04:00 |
|
Thomas Pelletier
|
9bc4641a49
|
ci-lint: disable ifshort
|
2021-04-15 13:37:24 -04:00 |
|
Thomas Pelletier
|
b86b890b8d
|
decoder: handle private anonymous structs
Ref #508
|
2021-04-15 12:49:24 -04:00 |
|
Cameron Moore
|
466bfe8664
|
encoder: inline tables create map in nil interface (#496)
Co-authored-by: Thomas Pelletier <pelletier.thomas@gmail.com>
|
2021-04-09 09:02:00 -04:00 |
|
Thomas Pelletier
|
37714006b6
|
V2 Marshaler MVP (#495)
|
2021-04-08 10:07:29 -04:00 |
|
Thomas Pelletier
|
1da2fc7e28
|
Minimal shared cache for struct field paths
|
2021-03-25 20:19:58 -04:00 |
|
Thomas Pelletier
|
43fc2fa552
|
Factor pointer handling
|
2021-03-24 21:05:44 -04:00 |
|
Thomas Pelletier
|
a0d031abec
|
Arrays support
|
2021-03-24 20:21:55 -04:00 |
|
Thomas Pelletier
|
bfeb32c9ce
|
Make unmarshal to interface{} consistent with encoding/json
|
2021-03-23 20:03:45 -04:00 |
|
Thomas Pelletier
|
0703eeb262
|
Fix bug parsing anonymous structs
|
2021-03-23 18:01:14 -04:00 |
|
Thomas Pelletier
|
4038ec3dae
|
Overflow checks
|
2021-03-23 09:44:03 -04:00 |
|
Thomas Pelletier
|
5b92184e42
|
Cast map key type
|
2021-03-23 09:20:28 -04:00 |
|
Thomas Pelletier
|
c6f117c45d
|
Handle pointers in slices
|
2021-03-23 09:15:48 -04:00 |
|
Thomas Pelletier
|
e5d63aa8fc
|
Add some type conversions
|
2021-03-22 20:09:11 -04:00 |
|
Thomas Pelletier
|
ac2d6e2030
|
Handle unmarshalling value to nil ptr.
|
2021-03-22 20:03:35 -04:00 |
|
Thomas Pelletier
|
ebffe6db83
|
Naive implementation of anonymous structs
|
2021-03-18 21:11:51 -04:00 |
|
Thomas Pelletier
|
9ec4e86883
|
Handle struct field name variations
|
2021-03-18 20:42:41 -04:00 |
|
Thomas Pelletier
|
93a7b0d77d
|
Skip AST branches that don't exist in the target
|
2021-03-18 20:30:51 -04:00 |
|
Thomas Pelletier
|
3e8b8db786
|
Unmarshal into pointers
|
2021-03-18 20:02:32 -04:00 |
|
Thomas Pelletier
|
a577df2dbb
|
wip
|
2021-03-18 17:19:50 -04:00 |
|
Thomas Pelletier
|
cb678e6221
|
Passing unmarshal of array table into interfaces
|
2021-03-18 08:47:50 -04:00 |
|
Thomas Pelletier
|
939f889666
|
wip: figuring out unmarshaling to interfaces
|
2021-03-17 09:57:50 -04:00 |
|
Thomas Pelletier
|
f9f9ccb777
|
Basic array table implementation
|
2021-03-16 10:24:19 -04:00 |
|
Thomas Pelletier
|
37d06dabcf
|
Unmarshal into maps
|
2021-03-15 09:49:10 -04:00 |
|
Thomas Pelletier
|
00b2f776a9
|
Replace branch with AST version
|
2021-03-15 08:46:35 -04:00 |
|