(re)allocating a large stl vector using the constructor, resize or reserve 
calls like

std::vector<unsigned char> abc(1920000);

or 

std::vector<unsigned char> abc;
abc.reserve(1920000);

 seems to be extremely slow in comparison to a simple malloc with exactly 
the same size in emscripten 1.35.

 Coming from a native C++ world, I would expect similar timing result as 
for malloc. 
Are there any special optimization flags to enable? Or is this a browser 
specific issue? 











-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to