-
Notifications
You must be signed in to change notification settings - Fork 55
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
Resizing sparse vectors #11
Comments
|
Is there any particular advantage to |
probably bounds checking is a bit faster. |
|
Yes - it has to be stored, but it could be made mutable. |
However common knowledge has it that mutable structs are slower. I haven't managed to find an official source for this, but maybe this could be worked around by storing |
Common knowledge sounds wrong then |
|
So could we keep the struct immutable and wrap |
See also JuliaLang/julia#15668 |
sounds like you need a SparseCateogrical specificly for use in dataframes, where resizing is needed over immutability. |
Hi there!
I was trying to use sparse columns in a
DataFrame
and I found out that some methods were missing for theSparseVector
type, such asdeleteat!
. Here's a MWE:Is there a specific reason why this doesn't exist, or is it just a case of "no one has gotten around to it yet"? In that scenario, I wouldn't mind taking a crack at it if the difficulty is reasonable enough!
cc @pdeffebach @bkamins following our discussion in JuliaData/CategoricalArrays.jl#374
The text was updated successfully, but these errors were encountered: