[+++] optimize malloc
[+] less mallocs
[=] slow functions timer once at 100 ms