-
Notifications
You must be signed in to change notification settings - Fork 7
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
TypeSortedCollection without indices #32
Comments
I think that's in scope. Let me think about this for a bit. |
Just thinking aloud. For a 'TypeSortedCollection without indices' Options regarding types:
|
My understanding is that non-mutable structs are inlined, like in C. If you create a new type, I propose |
Yeah, you're probably right then. I knew
|
That's a very good point, I hadn't thought of duplicates. I was just suggesting a shorter name.
|
Any further thought on this? At this point, I need such a datastructure for my work, so I can either implement it privately, or within this package (if we agree on a design)... |
Sorry, I've been out of town. You know what, implementing this yourself is probably the most expedient thing to do; you need this soon and I can't justify having it high on my priority list right now. I'd just develop this privately if I were you. |
I'd like to use TypeSortedCollection as a set (order does not matter at all), in high-performance code, and the cost of allocating/maintaining the vectors for the indices is bumming me out, since I have no use for it. I can't think of a perfect clean solution, but perhaps
indices
could be an empty tuple if preserve_order is false? That would require a lot of special-casing though... Do you feel like this is out of scope for this package?In particular, I'd like to support
filter!
. but it looks mighty hairy to maintain the indices efficiently.The text was updated successfully, but these errors were encountered: