Skip to content
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

Charge for page load optionally #1088

Closed
breathx opened this issue Jun 20, 2022 · 0 comments · Fixed by #1211
Closed

Charge for page load optionally #1088

breathx opened this issue Jun 20, 2022 · 0 comments · Fixed by #1211
Assignees
Labels
C1-feature Feature request D2-node Gear Node P1-asap High priority Q2-moderate

Comments

@breathx
Copy link
Member

breathx commented Jun 20, 2022

Problem to Solve

At the moment, while processing queue (see pallets/gear/fn process_queue) we charge gas for loading programs pages every time, but this may be optimised due to overlay existence

Possible Solution

To optimise with overlay:
Store program ids in ext_manager, which already were executed with current ext_manager instance: this means that pages were already read and/or updated, so the next read from db (overlay) is free.

Notes

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C1-feature Feature request D2-node Gear Node P1-asap High priority Q2-moderate
Projects
None yet
2 participants