Releases: sg0hsmt/budoux-go
Releases · sg0hsmt/budoux-go
v0.1.0
- Change segmentation start from third character to first character.
- This will result in a slight performance penalty.
- Add support for simplified chinese model.
- Reduce memory allocation.
Benchmark comparison between v0.0.3 and v0.1.0.
name old time/op new time/op delta
GetUnicodeBlockAndFeature-8 83.0ns ± 5% 31.2ns ± 1% -62.37% (p=0.000 n=30+26)
Parse-8 34.4µs ± 1% 39.2µs ± 1% +13.72% (p=0.000 n=26+27)
name old alloc/op new alloc/op delta
GetUnicodeBlockAndFeature-8 8.00B ± 0% 0.00B -100.00% (p=0.000 n=30+30)
Parse-8 472B ± 0% 240B ± 0% -49.15% (p=0.000 n=30+30)
name old allocs/op new allocs/op delta
GetUnicodeBlockAndFeature-8 2.00 ± 0% 0.00 -100.00% (p=0.000 n=30+30)
Parse-8 46.0 ± 0% 4.0 ± 0% -91.30% (p=0.000 n=30+30)
Full Changelog: v0.0.3...v0.1.0
v0.0.3
- Improve performance
Benchmark comparison between v0.0.2 and v0.0.3.
name old time/op new time/op delta
GetUnicodeBlockAndFeature-8 175ns ± 3% 79ns ± 6% -55.12% (p=0.000 n=29+28)
Parse-8 83.3µs ±15% 34.6µs ± 1% -58.40% (p=0.000 n=30+27)
name old alloc/op new alloc/op delta
GetUnicodeBlockAndFeature-8 8.00B ± 0% 8.00B ± 0% ~ (all equal)
Parse-8 19.2kB ± 0% 0.5kB ± 0% -97.54% (p=0.000 n=24+30)
name old allocs/op new allocs/op delta
GetUnicodeBlockAndFeature-8 2.00 ± 0% 2.00 ± 0% ~ (all equal)
Parse-8 832 ± 0% 46 ± 0% -94.47% (p=0.000 n=30+30)
Full Changelog: v0.0.2...v0.0.3
v0.0.2
- Fix auto-generated comment
- Add more examples and usage
Full Changelog: v0.0.1...v0.0.2