benchmarks icon indicating copy to clipboard operation
benchmarks copied to clipboard

brainfuck: minor improvements to V implementation

Open hungrybluedev opened this issue 3 years ago • 0 comments

Summary

  • The StringIterator was almost perfect. Changed it slightly to make the code more idiomatic.
  • Use enums instead of consts.
  • byte to u8 conversion with v fmt

Goals

This implementation is slightly faster than the older one. At least on my machine (Ryzen 5 4500U). It should bring the V/gcc and V/clang times closer to the C versions for both bench.b and mandel.b.

hungrybluedev avatar Jun 21 '22 10:06 hungrybluedev