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

Remove applicable and it all const-folds away... #31

Closed
wants to merge 2 commits into from
Closed

Remove applicable and it all const-folds away... #31

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Oct 26, 2018

This was the simplest attempt at fixing the constructor performance. If we simply limit the function to only work for known bitstype integer types (UInt8-UInt64, Int8-Int64), then we don't need that runtime check, since we know it'll work.

That said, this is of course terribly in-extensible, since we're manually restricting this method to only work for the provided types.

This pull request was closed.
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

Successfully merging this pull request may close these issues.

2 participants