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

improve trillion element performance #3

Open
yoshuawuyts opened this issue Mar 30, 2018 · 2 comments
Open

improve trillion element performance #3

yoshuawuyts opened this issue Mar 30, 2018 · 2 comments

Comments

@yoshuawuyts
Copy link
Contributor

adding a trillion elements into memory can take a couple of seconds; instead it might be useful to perhaps use something slightly more efficient. Perhaps an extra layer of pages in between the pages?

Not the biggest problem around, but probably a worthwhile optimization down the line to make things truly sparse.

@yoshuawuyts yoshuawuyts changed the title don't fill an array with None values improve trillion element performance Mar 30, 2018
@yoshuawuyts
Copy link
Contributor Author

lol, this makes us run out of memory on travis right now too. We need something better for sure lol

@yoshuawuyts
Copy link
Contributor Author

Good post on the topic: https://os.phil-opp.com/paging-implementation/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant