WebReflection / coincident

An Atomics based Proxy to simplify, and synchronize, Worker related tasks.
MIT License
189 stars 3 forks source link

Use direct index access instead of load/store #4

Closed WebReflection closed 1 year ago

WebReflection commented 1 year ago

I am not sure how much of a performance gain it is but it's very safe to just access or set the index of the arrays directly instead of using Atomics.load(ta, i) and/or Atomics.store(ta, i, v) and the final code size is reduced too.