Print architecture during build
jid: fix and test String()
benchmark old ns/op new ns/op delta
BenchmarkSplit-4 34.5 33.2 -3.77%
BenchmarkParseString-4 645 639 -0.93%
BenchmarkParseStringIPv4-4 669 663 -0.90%
BenchmarkParseStringIPv6-4 705 703 -0.28%
BenchmarkNew-4 607 603 -0.66%
BenchmarkCopy-4 3.09 3.07 -0.65%
BenchmarkBare-4 3.81 3.11 -18.37%
BenchmarkString-4 66.7 66.7 +0.00%
BenchmarkEscape-4 86.1 85.6 -0.58%
BenchmarkUnescape-4 271 270 -0.37%
jid: remove one allocation per operation from New
BenchmarkSplit-4 50000000 34.5 ns/op
BenchmarkParseString-4 2000000 648 ns/op
BenchmarkParseStringIPv4-4 2000000 675 ns/op
BenchmarkParseStringIPv6-4 2000000 709 ns/op
BenchmarkNew-4 2000000 600 ns/op
BenchmarkCopy-4 500000000 3.13 ns/op
BenchmarkBare-4 500000000 3.69 ns/op
BenchmarkString-4 20000000 66.0 ns/op
BenchmarkEscape-4 20000000 85.8 ns/op
BenchmarkUnescape-4 5000000 270 ns/op
Also speed up copies:
benchmark old ns/op new ns/op delta
BenchmarkSplit-4 33.1 34.5 +4.23%
BenchmarkParseString-4 663 648 -2.26%
BenchmarkParseStringIPv4-4 667 675 +1.20%
BenchmarkParseStringIPv6-4 705 709 +0.57%
BenchmarkNew-4 597 600 +0.50%
BenchmarkCopy-4 4.20 3.13 -25.48%
BenchmarkBare-4 4.02 3.69 -8.21%
BenchmarkString-4 60.9 66.0 +8.37%
BenchmarkEscape-4 85.6 85.8 +0.23%
BenchmarkUnescape-4 276 270 -2.17%
Updates #23
sasl2: add experimental XEP-0388 implementation
xmpp: cleanup odd buffer indirection in tests
Simplify slice literal declarations
[ci skip]
Remove accidentally comitted websocket code
Run tests with race detector
Remove unexported identifiers from features
Fixes #13
compress: Add support for LZW stream compression
Also tweak some comments to make later diffs smaller.
Fixes #15
form: rename "varName" to "id"
form: Rename Option and FieldOption types
Renamed to "Field" and "Option" respectively.
ibr2: Always send a response
ibr2: Implement OOB challenges
ibr2: Add initial negotiation implementation
ibr2: Add API stability disclaimer to docs