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
Helper function on SetHashes #35
Comments
I don't think we should be adding stuff purely for speed reasons when other ways of doing the same thing are not ironed out in terms of performance. For example, I can see other ways of doing the same thing. Like: Which is currently much slower, but there has to be a way to make it as fast as the proposed Also, it seems that good performance is already achievable with something like this: Although I'm not sure if it is fully identical to the proposed .set method, and if it is as fast? Edit: more stuff |
That should have been 10. You get a SetHash with itself, and the new SetHash. Which, incidentally, infiniloops on .gist or .perl :-( |
|
Some benchmarks / readability comparison: |
|
@lizmat what is the current status of this? Is it still planned? |
|
I guess either it is up to @jnthn to decide, or we need to take a vote on it? The conflicts should be easy to resolve. |
|
That's a question. We can't rely upon Jonathan on each end every case. As it was said, he is a scarce resource. But we probably need a collective decision making procedure. I'd try to think out something on this. |
No, but language design things probably are one of the things I can most usefully opine on. Design by what can win a vote isn't going to produce much consistency. Some questions:
|
See rakudo/rakudo#2942
Perhaps similar helper functions could be useful on
BagHashes (andMixHashes?) as well. But probably should then be called.addand.subtractThe text was updated successfully, but these errors were encountered: