uojs/uodatareader

whether it is possible to make the entire file is loaded into memory?

Opened this issue · 8 comments

whether it is possible to make the entire file is loaded into memory?

Maybe.

Working on it now, but it looks like it runs out of memory if I use native objects.

I think I can optimize it with Uint8Array (for Z) and Uint16Array (for IDs) and it might work.

loadMap use start X & Y == 1, starting blocks did not 0?

Yeah it should probably start at 0

loading maps in memory exceeds the default heap node. What do we do with this?

Need to use Int8Array and Uint16Array I think. This commit had it loading: 1913140?diff=unified

We could also try increasing the memory with --max-old-space-size= or by making a native library.

I think really it is necessary to return the typed arrays. I will correct.

then it will be necessary to see how much memory maps