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

Measure loop unroll performance #6

Open
hypirion opened this issue Aug 2, 2014 · 0 comments
Open

Measure loop unroll performance #6

hypirion opened this issue Aug 2, 2014 · 0 comments

Comments

@hypirion
Copy link
Owner

hypirion commented Aug 2, 2014

I have some ideas on how loop unrolling could be done very efficiently. However, that is purely theoretical and would require performance measurements.

The idea is as follows: In almost all cases, we know how many iteration steps there will be before the actual iteration is done. Additionally, the code for a trie walk is exactly the same, with the possible exception of the last step. Henceforth, loop unrolling can, with some macro tricks, be done as shown on the experimental branch.

There are some other tricks which can be used as well, for example fact that any subtrie not containing a size table will never have a child with a size table (this is where it gets messy).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant