-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance: no lazy_static or const fn #160
Comments
|
@sorpaas So all these precompiled gas functions need to be utilized with |
Actually originally this was related to all const variables here (https://github.com/ethereumproject/sputnikvm/blob/master/src/eval/cost.rs#L9). Because Still, however, I just realized that The type parameter of gas Oops sorry I probably should be more careful when labeling an issue as "good first issue". |
Right now as we build on stable Rust,
const fn
is not available. Thus struct likeGas
are constructed on the fly (the config file only store au64
). Performance can be improved if we utilizelazy_static
orconst fn
, if the latter ever stabilize (rust-lang/rust#24111).The text was updated successfully, but these errors were encountered: