Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Refactor all dataSync with arraySync #229
Just so you know arraySync will be slower than dataSync (it creates a regular JS array that is nested, whereas dataSync just returns the internal Float32Array representation).
Also, in practice you should try to use the async version if you care about performance. In the future we likely will have backends that don't even support dataSync (like WebGPU).
Cheers, and awesome work on this project :)