fuel-vm
fuel-vm copied to clipboard
Investigate performance to get `const` time gas cost lookups
lazy_static alone may be insufficient, would require some investigation to find the exact solution. But agree that an issue would be a good way to resolve this for now.
Originally posted by @Voxelot in https://github.com/FuelLabs/fuel-vm/pull/279#discussion_r1065222817
i.e. Our gas costs are behind an Arc, so every lookup might add up over time. Inside the VM, we could consider doing a clone or ref instead of doing an Arc lookup every time.
Need to do more investigation. We should just do some simple benchmarking/flamegraphing to analyze the differences between Arc and some other solution.