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

when Str::reverse(1*1024*1024), 1 Megabyte. Opacity will be negative value. #16

Open
Chinayang1 opened this issue Dec 30, 2021 · 2 comments

Comments

@Chinayang1
Copy link

c_0
c_1
c_3

@ocornut
Copy link
Owner

ocornut commented Dec 30, 2021

This is currently by design, we only allocate a few numbers of bits for capacity.
Since the world is now using mostly 64-bit compiler we should probably redesign the data structures to optimize for 16-bytes on all architectures (previously was 8-bytes on 32-bit arch and 12 aligned to 16 on 64-bit arch).

@Chinayang1
Copy link
Author

Thanks for reply! It's cool Str class to use.

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