@cebe Can you try to use array_fill() to emulate malloc() with fill memory with INT, not strings. Its should be much more faster than str_repeat() since its use many less iterations to fill memory.