Comment Comment by bajard Malloc() is sloooow. Even more if you also use free(). Consider allocating a single array and scratching there if possible. parent bajard 1 day ago