Tom Thorogood
|
b733ad8671
|
Improve unpackString performance (#1011)
I'm not convinced this is really worth doing, but it does show a
performance improvement.
name old time/op new time/op delta
UnpackString/Escaped-12 83.7ns ± 7% 78.2ns ± 3% -6.50% (p=0.000 n=10+9)
UnpackString/Unescaped-12 57.8ns ± 9% 50.4ns ±13% -12.74% (p=0.000 n=10+10)
name old alloc/op new alloc/op delta
UnpackString/Escaped-12 48.0B ± 0% 32.0B ± 0% -33.33% (p=0.000 n=10+10)
UnpackString/Unescaped-12 32.0B ± 0% 32.0B ± 0% ~ (all equal)
name old allocs/op new allocs/op delta
UnpackString/Escaped-12 2.00 ± 0% 1.00 ± 0% -50.00% (p=0.000 n=10+10)
UnpackString/Unescaped-12 1.00 ± 0% 1.00 ± 0% ~ (all equal)
|
2019-09-22 08:59:05 +01:00 |
Tom Thorogood
|
45e481ce44
|
Fix unpackString bug: 127 DEL is unprintable (#755)
This case previously differed from UnpackDomainName in
msg.go and both sprintTxtOctet and appendTXTStringByte in
types.go and was incorrect.
|
2018-09-27 07:47:48 +01:00 |
Tom Thorogood
|
5debfeec63
|
Use strings.Builder in unpackString (#746)
* Add test case and benchmark for unpackString helper
* Use strings.Builder in unpackString
|
2018-09-23 11:21:14 +01:00 |
Lorenzo Fontana
|
8004f28488
|
Add testcases to validate consistency of packDataNsec (#714)
Signed-off-by: Lorenzo Fontana <lo@linux.com>
|
2018-07-23 22:44:09 +01:00 |