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

In Context 0.2, consider switching between multiple tables #452

Open
dominiccooney opened this issue Sep 13, 2019 · 0 comments
Open

In Context 0.2, consider switching between multiple tables #452

dominiccooney opened this issue Sep 13, 2019 · 0 comments

Comments

@dominiccooney
Copy link
Member

The "context 0.1" file format has one model for a given field.

Say you have a file where someone's pasted two source files together and the first half of the file uses "var" and the second half uses "let" and "const." In context 0.1 you'll end up with a model with a mixture of var, let and const and need 1-2 bits for each symbol to describe variable kinds.

If instead the file format could have multiple models and switch between them, then for the first half of the file it could have a model specifying 0-bits for "var" and then a switch and a model with 1 bit for "let" or "const", and that would be good.

There are probably fancier ideas where you switch sets of related models at once.

Brotli does something like this, if you look at RFC7932 and the Block-Switch stuff.

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