modifs buffer/typedarray and performances