- 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