This pr simplifies the Memory.copy and Memory.fill polyfills in Memory.gr, I implemented them using a for loop as it means less mutable variables compared to the while loop approach and makes the code a lot easier to follow.
Additionally this removes a few operations per cycle on the functions as we are not modifying as many values every iteration.
This pr simplifies the
Memory.copy
andMemory.fill
polyfills inMemory.gr
, I implemented them using afor
loop as it means less mutable variables compared to the while loop approach and makes the code a lot easier to follow.Additionally this removes a few operations per cycle on the functions as we are not modifying as many values every iteration.