-
-
Notifications
You must be signed in to change notification settings - Fork 701
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
std.uni - speed up Trie construction by factor of ~3 #1969
Conversation
@@ -1222,11 +1222,12 @@ private: | |||
// this construct doesn't own memory, only provides access, see MultiArray for usage | |||
@trusted struct PackedArrayViewImpl(T, size_t bits) | |||
{ | |||
pure nothrow: | |||
pure : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happened? Who's throwing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops. debug writeln must have been throwing I'll get nothrow back.
Take advantage of word-at-once checking for slices of bit-packed arrays in the trie.
@monarchdodra Got back that |
I don't see anything wrong in the pull, but I can't really claim to understand what you are doing either. I'm really just merging your pulls based off of trust alone. That's mostly fine by me, but do you know anyone who could actually review it? |
@monarchdodra not really and it kinda sucks. a) Good public interface is hard to expose And postponed that indefinitely. |
Auto-merge toggled on |
Pull updated, auto_merge toggled off |
Meh update dropped, I swear I didn't update it :) |
Auto-merge toggled on |
std.uni - speed up Trie construction by factor of ~3
Thanks! |
Take advantage of word-at-once checking for slices of bit-packed arrays in the trie.
Now it's seems to be either on par or much faster (depending on the set) then the venerable std.regex internal trie.
Tiny test: