kig / DataStream.js

DataStream.js is a library for reading data from ArrayBuffers
173 stars 39 forks source link

Improve the memory efficiency of the createStringFromArray function #10

Closed csvurt closed 9 years ago

csvurt commented 9 years ago

The original function caused out of memory exceptions when trying to parse large data arrays into strings. This version converts the array in chunks to reduce the number of memory allocations inside the for loop.

kig commented 9 years ago

Thanks! Merged.