fuel-vm icon indicating copy to clipboard operation
fuel-vm copied to clipboard

Investigate performance to get `const` time gas cost lookups

Open ControlCplusControlV opened this issue 3 years ago • 1 comments

    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

ControlCplusControlV avatar Jan 10 '23 00:01 ControlCplusControlV

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.

MitchTurner avatar Dec 12 '24 16:12 MitchTurner