You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Making the drops() operation faster in cuDF, which is hard since the semantic of Pandas requires a full copy but could be done by using some kind of copy-on-write technique.
As suggested by @mrocklin, inject inplace=True in drop operations in Dask when it is safe. E.g., it is save when the drop is inside a blockwise operation where it doesn't affect the input of the blockwise operation. @rjzamora is working on this solution.
@mrocklin - I have a question about the kinds of "drop" tasks that can be safely modified to operate in-place.
I understand that we would not want to modify data that is the direct input to the Blockwise subgraph containing the drop operation. You also mentioned that we would probably not want to modify a task that had multiple direct dependents. Is it dangerous when the dependents are also within the same subgraph, or just if the drop task has no dependents within the subgraph, but the larger Blockwise element has multiple dependents?
For example, I am running a very simple test, and getting graph dependencies that look like this:
Would it be safe to perform the drop "in place" for this sepcific example?
I think that it is likely safe if the drop node has many dependents (many tasks use the result of drop).
The dangerous situtation, I think, is when the input to drop has other dependencies. In that situation it would matter if the drop was called first or second in the computation, which is hard for us to guarantee.
Activity
rjzamora commentedon Dec 3, 2019
@mrocklin - I have a question about the kinds of "drop" tasks that can be safely modified to operate in-place.
I understand that we would not want to modify data that is the direct input to the
Blockwisesubgraph containing the drop operation. You also mentioned that we would probably not want to modify a task that had multiple direct dependents. Is it dangerous when the dependents are also within the same subgraph, or just if the drop task has no dependents within the subgraph, but the largerBlockwiseelement has multiple dependents?For example, I am running a very simple test, and getting graph dependencies that look like this:
Would it be safe to perform the drop "in place" for this sepcific example?
For reference, the actual test looks like this:
mrocklin commentedon Dec 3, 2019
I think that it is likely safe if the drop node has many dependents (many tasks use the result of drop).
The dangerous situtation, I think, is when the input to drop has other dependencies. In that situation it would matter if the drop was called first or second in the computation, which is hard for us to guarantee.