Investigate performance to get `const` time gas cost lookups
Open
- Dominant language
- Rust
- Stars
- 370
- Forks
- 96
- PR merge metrics
- No merged PRs in 30d
Description
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_
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the Fuel VM gas-cost lookup path and investigating whether the current lookup can be made constant-time. Compare viable approaches, including the noted lazy_static idea, and define done as a measured performance improvement with the chosen lookup behavior verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- blockchain
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100