Jacek Sieka 4e223b95a7
endians2: use copyMem instead of loop outside of vm (#95)
Looking at generated assembly, it turns out the optimizer is not smart
enough to get rid of the loop - use `copyMem` instead.

At least the compiler is smart enough to constant-propagate runtime
endian direction, resolving the review comment.

Also clarify why a minimum length is enfored - it could perhaps be
revisited, but that would leave a slightly odd API.

the `array` overloads are actually unnecessary with an optimizing
compiler - as long as it can prove the length, any extra checks will go
away on their own

also add `initCopyFrom`

* document optimizations
2022-01-03 14:53:01 +01:00
..
2019-12-20 13:23:30 +01:00
2021-12-03 13:28:59 +02:00
2020-06-15 21:09:41 +07:00
2021-04-16 15:23:36 +02:00
2021-12-02 16:24:02 +01:00
2021-04-12 22:55:09 +02:00
2019-12-20 13:23:30 +01:00
2020-12-10 12:05:22 +01:00
2020-12-15 17:07:20 +02:00
2021-02-10 15:10:08 +02:00
2021-09-13 19:02:32 +03:00
2019-09-26 18:25:19 +03:00
2021-07-07 10:12:20 +02:00
2020-12-10 12:05:22 +01:00
2021-12-03 13:28:59 +02:00