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

Make MapTile a struct #11

Closed
kazimuth opened this issue May 10, 2015 · 2 comments
Closed

Make MapTile a struct #11

kazimuth opened this issue May 10, 2015 · 2 comments

Comments

@kazimuth
Copy link
Collaborator

Seeing as hundreds of millions of them are allocated, it's probably a good idea to allocate them all at once. (It will use marginally more memory, but still only like a megabyte, and put less stress on the GC.)

@RosaryMala
Copy link
Owner

Allocating new ones isn't that costly though.

On Sun 10 May, 2015 12:56 pm James Gilles notifications@github.com wrote:

Seeing as hundreds of millions of them are allocated, it's probably a good
idea to allocate them all at once. (It will use marginally more memory, but
still only like a megabyte, and put less stress on the GC.)


Reply to this email directly or view it on GitHub
#11.

@kazimuth
Copy link
Collaborator Author

Done in be67d7d.

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

2 participants