Closed jingkaimori closed 3 months ago
bench的结果在Pull Request的描述里面贴一下吧
依据PR里面的描述,前三项的性能退化了。
在第三次提交下,性能应该有改善,需要一个新的性能对比,来判断性能上是否提升或者降低。
需要一个新的性能对比,来判断性能上是否提升或者降低。
已更新在pr的说明中
slice/concat/append 变快了,别的基本上差不多,略有变慢
在PR描述或者代码里面写一下,这个pr和 https://github.com/XmacsLabs/lolly/pull/331 有什么区别,如何做到避免内存问题的
This pr ensure the layout consistency between array and string, by make member pointer appears at the same position of class, so that union inside tree will not be broken.
331
this pr
Performance
Before
construct string
equality of string
equality of larger string
compare string
compare larger string
slice string
slice string with larger range
concat string
append string
hash of string
hash of larger string
is quoted
After
construct string
equality of string
equality of larger string
compare string
compare larger string
slice string
slice string with larger range
concat string
append string
hash of string
hash of larger string
is quoted