Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么要用sizeMap来计算开始和结束的index? #63

Open
smallnew opened this issue Apr 9, 2020 · 1 comment
Open

为什么要用sizeMap来计算开始和结束的index? #63

smallnew opened this issue Apr 9, 2020 · 1 comment

Comments

@smallnew
Copy link

smallnew commented Apr 9, 2020

我研究了下内部的实现,发现使用了sizeMap来计算index,感觉很冗余,想不出用这种方式能带来什么好处,性能上和代码逻辑上都没得到任何优化,有点像脱了裤子放屁。而且计算出来的sizeMap也是有问题的。

@Rainsheep
Copy link

精辟,的确有问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants