-
Notifications
You must be signed in to change notification settings - Fork 13
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
Purity assumption of map #63
Comments
I think the gains are such that it's worth assuming that |
Yeah it should be clearly documented by DataFrames, and an alternative function or a |
I am not sure what you mean here. DataFrames.jl is not aware of PooledArrays.jl in that part of code. It is using generic I would say the question is the following. The docstring of
Which explicitly promises to apply The comment by @nalimilan in JuliaData/DataFrames.jl#2837 (comment) has the following context:
|
It does seem like we'd be better off making |
That's too bad for performance, but I have to admit that this issue keeps being raised... How about having a keyword argument Another, probably too clever solution: call |
I feel is too complex.
|
Yeah, |
Originally posted by @bkamins in #44 (comment)
By the functional definition of
map
it kinda should be pure.But that isn't what julia has, so it's probably not great to assume that.
It might be nice though if there was a
pure_map
(in DataAPI maybe?) that is documented to be assuming that the function is pure.And that falls back to
map
if not overloaded (e.g. byPooledArray
), or possibly even for large arrays to a memorized version ofmap
(could even go so far as to do a little tuning step to workout how large)The text was updated successfully, but these errors were encountered: