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

Store GLmetadata enums in String[] array #6

Open
httpdigest opened this issue Aug 13, 2017 · 0 comments
Open

Store GLmetadata enums in String[] array #6

httpdigest opened this issue Aug 13, 2017 · 0 comments
Projects

Comments

@httpdigest
Copy link
Member

Currently, all enums in all enum groups are simply stored in a HashMap, which is wasteful regarding space and runtime, since the enum values are rather densely distributed. Therefore, space requirements and lookup time can be improved by simply allocating a contiguous associative String[] array holding the names of all GLenum values in the effective interval min < max where min and max are the lower and upper bounds of assigned GLenum values.

On-demand loading of enum values into that array can still be used as is now, by lazily populating the respective needed array elements.

@httpdigest httpdigest added this to Issues in Tracing Aug 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Tracing
Issues
Development

No branches or pull requests

1 participant