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

关于字符串的实现 #282

Open
ChrisCatCP opened this issue Dec 8, 2022 · 3 comments
Open

关于字符串的实现 #282

ChrisCatCP opened this issue Dec 8, 2022 · 3 comments

Comments

@ChrisCatCP
Copy link

看了下fast.h
对于字符串好像没有sso优化 小字符串的话性能肯定比std::string差不少

@idealvin
Copy link
Owner

idealvin commented Dec 9, 2022

coost内部使用了专用的内存分配器,在一定程度上弥补了上述性能损失

@ChrisCatCP
Copy link
Author

这个知道 但是问题是 stl本来就是可以自定义分配器的 你不能拿默认的分配器来比吧

@idealvin
Copy link
Owner

后面有空再考虑支持

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