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

Encoding of interpreter-level script representation #7

Open
foxcpp opened this issue Jan 25, 2025 · 0 comments
Open

Encoding of interpreter-level script representation #7

foxcpp opened this issue Jan 25, 2025 · 0 comments

Comments

@foxcpp
Copy link
Owner

foxcpp commented Jan 25, 2025

Sieve scripts might be loaded many times again and again while processing incoming messages. While it is possible to store interp.Script objects in memory, a practical implementation might want to avoid doing so as the size and amount of scripts can be significant. One potential solution is to define an efficient encoding of interp.Script data so it can be quickly restored from external cache on-demand without the cost of parsing the original Sieve code.

@foxcpp foxcpp changed the title Cached representation Encoding of interpreter-level script representation Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant