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

Tweak heuristics for fast predictor selection #20

Open
veluca93 opened this issue Aug 2, 2022 · 0 comments
Open

Tweak heuristics for fast predictor selection #20

veluca93 opened this issue Aug 2, 2022 · 0 comments

Comments

@veluca93
Copy link
Owner

veluca93 commented Aug 2, 2022

Have you tried subtracting 1 iff nbits[0] <= (1/2)?

Even better I think could be to double all the bit costs (as that changes nothing), but remap bitcost 1 into 1 instead of 2 for 0, and perhaps bitcost 2 into 3 (or 4), or something like that.

Rationale being that RLE only kicks in for many consecutive 0s, so you'd need the 0 probability to be quite high.

Originally posted by @veluca93 in #19 (comment)

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