Thomas Pelletier
|
5d905981cf
|
CI: add dependabot
|
2021-03-30 22:03:39 -04:00 |
|
Thomas Pelletier
|
7ccacf158e
|
Test for #252
|
2021-03-30 21:53:01 -04:00 |
|
Thomas Pelletier
|
739ceda96c
|
Move github pull request template
|
2021-03-30 21:45:43 -04:00 |
|
Thomas Pelletier
|
32da85ab11
|
Decoding error position tracking
|
2021-03-30 21:43:57 -04:00 |
|
Thomas Pelletier
|
18d45c446b
|
wip: decoder errors
|
2021-03-30 19:52:02 -04:00 |
|
Thomas Pelletier
|
bcd5333b03
|
Enable ci on v2-wip branch pull requests
|
2021-03-30 12:38:26 -04:00 |
|
Cameron Moore
|
e5255a5be2
|
Set bytes in ReferenceFile benchmark to show throughput results (#489)
|
2021-03-30 12:34:25 -04:00 |
|
Thomas Pelletier
|
cf288a51c5
|
Wip errors reporting
|
2021-03-30 10:59:35 -04:00 |
|
Thomas Pelletier
|
72a1afdcb2
|
Add some unsafe helper to track errors
|
2021-03-29 22:33:28 -04:00 |
|
Thomas Pelletier
|
2714786b37
|
Add decoder interface
|
2021-03-29 21:30:41 -04:00 |
|
Thomas Pelletier
|
51d78a5f0c
|
Fix unmarshaling of literal keys
Ref #427.
|
2021-03-29 20:58:51 -04:00 |
|
Thomas Pelletier
|
78389c641a
|
Test for #475
|
2021-03-29 20:46:09 -04:00 |
|
Thomas Pelletier
|
c3fc668f27
|
Test for #458
|
2021-03-29 20:38:48 -04:00 |
|
Thomas Pelletier
|
7f016efe03
|
Test for #484
|
2021-03-29 20:28:51 -04:00 |
|
Thomas Pelletier
|
269b742eb2
|
Enable race condition detector in CI
|
2021-03-29 20:17:05 -04:00 |
|
Cameron Moore
|
7d8ea80dc3
|
Fix scanning of float with leading zero (#486)
|
2021-03-29 20:07:26 -04:00 |
|
Cameron Moore
|
6165b9454f
|
Identify test helper functions (#487)
|
2021-03-29 20:06:46 -04:00 |
|
Thomas Pelletier
|
2ddbf6be6d
|
Implement duplicate and key types check
|
2021-03-29 10:45:50 -04:00 |
|
Thomas Pelletier
|
da21b0aecf
|
wip: correctness pass on the AST
|
2021-03-28 22:12:19 -04:00 |
|
Thomas Pelletier
|
829c005784
|
Fix unicode decoding
|
2021-03-28 11:03:43 -04:00 |
|
Thomas Pelletier
|
b24eb93e8e
|
Fix literal multiline parsing
|
2021-03-28 00:23:50 -04:00 |
|
Thomas Pelletier
|
7dc5550057
|
Fix multiline basic string parsing
|
2021-03-28 00:17:58 -04:00 |
|
Thomas Pelletier
|
9a436c7eeb
|
Remove logging in test
|
2021-03-28 00:06:40 -04:00 |
|
Thomas Pelletier
|
72c999ecbf
|
Fix trailing commas in arrays
|
2021-03-28 00:04:25 -04:00 |
|
Thomas Pelletier
|
e5a091a092
|
Don't depend on my computer path
|
2021-03-27 23:43:24 -04:00 |
|
Thomas Pelletier
|
317b36b24b
|
Add back license
|
2021-03-26 09:53:21 -04:00 |
|
Thomas Pelletier
|
636a75f316
|
Import tomltestgen
Handful are failing.
|
2021-03-26 09:51:35 -04:00 |
|
Thomas Pelletier
|
390927a0cd
|
Reuse AST storage between top-level expressions
```
Comparing:
old: v2-wip/1da2fc7 (2021-03-25 20:38:05 -0400 -0400)
run: v2-wip/3f23ab9 (2021-03-25 22:35:06 -0400 -0400)
-----------------------------------------------------------
name old time/op new time/op delta
UnmarshalSimple/v2-8 700ns ± 3% 705ns ± 2% ~ (p=0.690 n=5+5)
UnmarshalSimple/v1-8 3.85µs ± 1% 4.02µs ± 4% +4.19% (p=0.032 n=5+5)
UnmarshalSimple/bs-8 2.34µs ± 2% 2.38µs ± 3% ~ (p=0.310 n=5+5)
ReferenceFile/v2-8 32.2µs ±13% 23.9µs ± 1% -25.79% (p=0.008 n=5+5)
ReferenceFile/v1-8 270µs ± 2% 264µs ± 2% ~ (p=0.095 n=5+5)
ReferenceFile/bs-8 291µs ± 0% 294µs ± 0% +0.88% (p=0.008 n=5+5)
name old alloc/op new alloc/op delta
ReferenceFile/v2-8 37.1kB ± 0% 6.7kB ± 0% -81.91% (p=0.008 n=5+5)
ReferenceFile/v1-8 131kB ± 0% 131kB ± 0% ~ (p=0.444 n=5+5)
ReferenceFile/bs-8 80.8kB ± 0% 80.8kB ± 0% ~ (p=0.571 n=5+5)
name old allocs/op new allocs/op delta
ReferenceFile/v2-8 152 ± 0% 148 ± 0% -2.63% (p=0.008 n=5+5)
ReferenceFile/v1-8 2.65k ± 0% 2.65k ± 0% ~ (all equal)
ReferenceFile/bs-8 1.73k ± 0% 1.73k ± 0% ~ (all equal)
~/s/g/p/g/benchmark$ go test -bench=.
goos: linux
goarch: amd64
pkg: github.com/pelletier/go-toml/v2/benchmark
cpu: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
BenchmarkUnmarshalSimple/v2-8 1692444 710.7 ns/op
BenchmarkUnmarshalSimple/v1-8 307609 3862 ns/op
BenchmarkUnmarshalSimple/bs-8 520429 2285 ns/op
BenchmarkReferenceFile/v2-8 50395 24006 ns/op 6704 B/op 148 allocs/op
BenchmarkReferenceFile/v1-8 4144 264655 ns/op 130567 B/op 2649 allocs/op
BenchmarkReferenceFile/bs-8 3969 293635 ns/op 80784 B/op 1729 allocs/op
PASS
ok github.com/pelletier/go-toml/v2/benchmark 8.143s
```
|
2021-03-25 22:37:16 -04:00 |
|
Thomas Pelletier
|
3f23ab97e0
|
Revert os/go version to fit in github pop-up
|
2021-03-25 21:16:31 -04:00 |
|
Thomas Pelletier
|
47611ff9ea
|
Shorter names for CI
|
2021-03-25 21:14:59 -04:00 |
|
Thomas Pelletier
|
f4ac7f7bfa
|
Multi OS testing
|
2021-03-25 21:12:19 -04:00 |
|
Thomas Pelletier
|
e75f23188d
|
Add v2-wip to codeql branches
|
2021-03-25 21:08:03 -04:00 |
|
Thomas Pelletier
|
6c8adbcb17
|
Remove azure pipeline
|
2021-03-25 21:06:54 -04:00 |
|
Thomas Pelletier
|
ffc7d3ba6e
|
Port codeql
|
2021-03-25 21:06:34 -04:00 |
|
Thomas Pelletier
|
4efec6b76a
|
Add github actions workflow
|
2021-03-25 21:05:07 -04:00 |
|
Thomas Pelletier
|
0fcf06e374
|
Update todo
|
2021-03-25 20:49:27 -04:00 |
|
Thomas Pelletier
|
1d332cd112
|
Add documentation for the AST
|
2021-03-25 20:46:31 -04:00 |
|
Thomas Pelletier
|
9d3a912da0
|
Remove unused interface
Comparing:
old: v2-wip/17299c9 (2021-03-25 20:19:40 -0400 -0400)
run: v2-wip/1da2fc7 (2021-03-25 20:38:05 -0400 -0400)
-----------------------------------------------------------
name old time/op new time/op delta
UnmarshalSimple/v2-8 755ns ± 3% 700ns ± 3% -7.26% (p=0.008 n=5+5)
UnmarshalSimple/v1-8 3.87µs ± 0% 3.85µs ± 1% ~ (p=0.254 n=4+5)
UnmarshalSimple/bs-8 2.44µs ± 4% 2.34µs ± 2% ~ (p=0.056 n=5+5)
ReferenceFile/v2-8 33.5µs ± 7% 32.2µs ±13% ~ (p=0.421 n=5+5)
ReferenceFile/v1-8 269µs ± 3% 270µs ± 2% ~ (p=1.000 n=5+5)
ReferenceFile/bs-8 296µs ± 2% 291µs ± 0% ~ (p=0.095 n=5+5)
name old alloc/op new alloc/op delta
ReferenceFile/v2-8 38.9kB ± 0% 37.1kB ± 0% -4.77% (p=0.008 n=5+5)
ReferenceFile/v1-8 131kB ± 0% 131kB ± 0% ~ (all equal)
ReferenceFile/bs-8 80.8kB ± 0% 80.8kB ± 0% ~ (p=0.841 n=5+5)
name old allocs/op new allocs/op delta
ReferenceFile/v2-8 181 ± 0% 152 ± 0% -16.02% (p=0.008 n=5+5)
ReferenceFile/v1-8 2.65k ± 0% 2.65k ± 0% ~ (all equal)
ReferenceFile/bs-8 1.73k ± 0% 1.73k ± 0% ~ (all equal)
|
2021-03-25 20:38:45 -04:00 |
|
Thomas Pelletier
|
1da2fc7e28
|
Minimal shared cache for struct field paths
|
2021-03-25 20:19:58 -04:00 |
|
Thomas Pelletier
|
17299c937b
|
Update readme
|
2021-03-25 19:56:40 -04:00 |
|
Thomas Pelletier
|
1bae751a45
|
Linear array storage for AST
|
2021-03-25 19:56:02 -04:00 |
|
Thomas Pelletier
|
8a8d1233bb
|
First benchmark!
~/s/g/p/g/benchmark$ go test -bench=.
goos: linux
goarch: amd64
pkg: github.com/pelletier/go-toml/v2/benchmark
cpu: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
BenchmarkUnmarshalSimple/v2-8 1607115 742.0 ns/op
BenchmarkUnmarshalSimple/v1-8 307977 3915 ns/op
BenchmarkUnmarshalSimple/bs-8 516754 2330 ns/op
BenchmarkReferenceFile/v2-8 9604 129158 ns/op 111422 B/op 1381 allocs/op
BenchmarkReferenceFile/v1-8 4521 263808 ns/op 130566 B/op 2649 allocs/op
BenchmarkReferenceFile/bs-8 4070 296271 ns/op 80784 B/op 1729 allocs/op
PASS
ok github.com/pelletier/go-toml/v2/benchmark 8.139s
|
2021-03-24 22:15:12 -04:00 |
|
Thomas Pelletier
|
ad538d97c9
|
Delete reflectbuild
|
2021-03-24 21:06:38 -04:00 |
|
Thomas Pelletier
|
43fc2fa552
|
Factor pointer handling
|
2021-03-24 21:05:44 -04:00 |
|
Thomas Pelletier
|
dd5837651d
|
Support TextUnmarshaler
|
2021-03-24 21:02:02 -04:00 |
|
Thomas Pelletier
|
a0d031abec
|
Arrays support
|
2021-03-24 20:21:55 -04:00 |
|
Thomas Pelletier
|
a25f636a07
|
Add array support todo
|
2021-03-23 21:18:19 -04:00 |
|
Thomas Pelletier
|
a3b7e1e353
|
Fix table array into pointer to slice
|
2021-03-23 21:14:54 -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 |
|