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

Optimize text view and text iterator size by declaring the encoding state as a data member rather than deriving from it when doing so is beneficial #8

Open
tahonermann opened this issue Jan 22, 2016 · 0 comments
Assignees

Comments

@tahonermann
Copy link
Owner

Modify text_view and text iterators to derive from the encoding state type only if the state type is an empty class and to declare a non-static data member otherwise. This will reduce the size of text_view and text iterator objects when the encoding state type is non-empty and has lower alignment requirements than the first non-static data member of the text_view and text iterator types.

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

No branches or pull requests

1 participant