Add ValueTuple overload for creating CompressedColumnStorage#46
Add ValueTuple overload for creating CompressedColumnStorage#46wo80 merged 4 commits intowo80:masterfrom
Conversation
|
If you want me to add more overloads elsewhere or otherwise deduplicate this somehow... let me know. I intentionally tried to keep this scoped as narrow as possible until hearing from you. |
|
@Austin-Lamb, my co-worker, suggests that I should use names on the parts of the ValueTuple so it's less ugly than Item1, Item2, etc. |
|
Thanks! The method parameters should also be documented in the public Leaving the original conversion method for enumerables of I was wondering whether the Lines 132 to 136 in 5547c20 |
Yeah I thought about that, but I didn't want to change the public API. I almost thought of making I know that it would increase the performance for when it's used in the |
…ch the method I copied from while I'm here.
…and CompressedColumn storage mechanisms derived from that class. Use the value-based variant in the OfMatrix helper to avoid allocations.
|
Try this on, @wo80. I made a separate abstract method and implemented that one in both the Compressed and Dense matrix classes, then used it in the .OfMatrix helper. Happy to keep iterating if you want me to just replace the old one. I'm just normally allergic to public API breaking changes. |
I fully agree. Version 4 was just published, and I don't want to release a new major version with such a minor change, so let's leave it this way. I'll add a |
When working with this package, I wanted to use ValueTuple over classic Tuple to avoid the heap allocation that occurs on every single Tuple (improving performance).