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

Opt(bulk): Reuse z.Allocator #7360

Merged
merged 1 commit into from
Jan 23, 2021
Merged

Opt(bulk): Reuse z.Allocator #7360

merged 1 commit into from
Jan 23, 2021

Conversation

manishrjain
Copy link
Contributor

@manishrjain manishrjain commented Jan 23, 2021

Instead of creating a new z.Allocator for every encoder, this PR reuses the allocator. On a 21M dataset, bulk loader takes 2m22s on master, and only 1m35s on this PR. That's a major 35% performance improvement.


This change is Reviewable

@github-actions github-actions bot added the area/bulk-loader Issues related to bulk loading. label Jan 23, 2021
@manishrjain manishrjain merged commit 889989f into master Jan 23, 2021
@manishrjain manishrjain deleted the mrjn/alloc branch January 23, 2021 14:02
aman-bansal pushed a commit that referenced this pull request Mar 11, 2021
Instead of creating a new z.Allocator for every encoder, this PR reuses the allocator. On a 21M dataset, bulk loader takes 2m22s on master, and only 1m35s on this PR. That's a major 35% performance improvement.
aman-bansal pushed a commit that referenced this pull request Mar 23, 2021
Instead of creating a new z.Allocator for every encoder, this PR reuses the allocator. On a 21M dataset, bulk loader takes 2m22s on master, and only 1m35s on this PR. That's a major 35% performance improvement.
aman-bansal added a commit that referenced this pull request Mar 23, 2021
…inging tags to allocator (#7360) (#7547)

* Reuse allocator (#7360)

Instead of creating a new z.Allocator for every encoder, this PR reuses the allocator. On a 21M dataset, bulk loader takes 2m22s on master, and only 1m35s on this PR. That's a major 35% performance improvement.

* use allocator tags

Co-authored-by: Manish R Jain <manish@dgraph.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/bulk-loader Issues related to bulk loading.
Development

Successfully merging this pull request may close these issues.

1 participant