RosaryMala / armok-vision

A 3d realtime visualizer for Dwarf Fortress
MIT License
319 stars 27 forks source link

Make MapTile a struct #11

Closed kazimuth closed 9 years ago

kazimuth commented 9 years ago

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 commented 9 years ago

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 https://github.com/JapaMala/armok-vision/issues/11.

kazimuth commented 9 years ago

Done in be67d7d.