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

decode new shift-allowing format #1

Merged
merged 6 commits into from
Jan 21, 2017
Merged

Conversation

timo
Copy link
Contributor

@timo timo commented Jan 19, 2017

fix an off-by-one in shift table one on the way

fix an off-by-one in shift table one on the way
@timo
Copy link
Contributor Author

timo commented Jan 19, 2017

at least one bug still remains: MARTIAL ARTS UNIFORM ends up as MARTIAL ARTS UNJ and after that comes an empty name before CROISSANT.

other than that i hope the decompressor struct and its "fill up the queue when we need stuff" approach is good.

@timo
Copy link
Contributor Author

timo commented Jan 19, 2017

turns out we have 41 instead of 40 entries in the hash, but not in the list. that 41st entry is "FORM", which is what breaks the MARTIAL ARTS UNIFORM. so the .pop from the list is not enough (or we need to have it somewhere before the hash is built)

@timo
Copy link
Contributor Author

timo commented Jan 20, 2017

that commit in there makes the MARTIAL ARTS UNIFORM work again :)

@timo
Copy link
Contributor Author

timo commented Jan 20, 2017

and the performance improved nicely from 82 seconds down to 62 seconds for a gain of about 25% 🎉

when smart match against a type will do just as well
@samcv samcv merged commit cbfb0da into samcv:master Jan 21, 2017
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

Successfully merging this pull request may close these issues.

2 participants