Andy Ferris
Andy Ferris
Expanding on that - I'd mostly consider it an antipattern to dispatch on the element type of an abstract container. Exceptions like calling BLAS for multiplying `Matrix{Float64}` would be better...
Yes the `convert` behaviour should be somewhat like that for `Dict` and `Array`. Currently it’s just not implemented yet. Thanks for the reminder
Yes, once some ordering semantics of `AbstractDictionary` are resolved in #13 I don't see why we can't have array-like dictionaries with ranges as keys. I don't think implementing this will...
Hmm I wonder if Julia ever reduces the size of the buffer behind `Vector`? What happens if you `push!` to create a large array and then `pop!` it until it...
Great detective work @guimarqu! It seems like we should try adding `sizehint!` calls in this code block: https://github.com/andyferris/Dictionaries.jl/blob/master/src/Indices.jl#L238-L242 and see what happens. If anyone is up for preparing a PR...
> So are you suggesting that once I remove half the elements I call sizehint! and suggest the updated smaller length? I think the best way is if we just...
Interesting. Hmm. I wonder if `GC.gc()` works better than `sleep`? Have you tried reducing the vector much further (perhaps even empty)?
Okay, interesting. It really seemed like that C code should be reallocating... @c42f sorry to bother you but I was wondering if you had any insights? (Also, in general, I'm...
Thanks Chris - `gc_live_bytes` sounds pretty useful!
Yeah that's one reason why it was implemented how it is, because this is a bit awkward. As it stands you'd almost not want an abstract definition, and instead force...