Skip to content
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

Allow DRef size to be nothing #51

Closed
wants to merge 2 commits into from
Closed

Allow DRef size to be nothing #51

wants to merge 2 commits into from

Conversation

jpsamaroo
Copy link
Collaborator

@jpsamaroo jpsamaroo commented Jun 2, 2021

Instead of performing an expensive Base.summarysize when calculating the size of arbitrary objects for storing as a DRef, we now set the size to nothing if we don't have a method for computing approx_size of the object. This should alleviate performance concerns reported at JuliaParallel/Dagger.jl#204 (comment); I will post a matching Dagger PR soon to make use of this new change.

@DrChainsaw this should be of interest to you!

@jpsamaroo jpsamaroo force-pushed the jps/size-skip branch 2 times, most recently from c8210f9 to 3dde3a3 Compare June 2, 2021 17:12
@jpsamaroo
Copy link
Collaborator Author

@quinnj this may be relevant for JuliaDB, since I believe it relies on approx_size.

@jpsamaroo
Copy link
Collaborator Author

We now have our own way to calculate object sizes in Dagger which are far more efficient than summarysize, so this PR is unnecessary.

@jpsamaroo jpsamaroo closed this Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant