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

Use numeric level id in generated methods and elsewhere when we have it #55

Merged
merged 2 commits into from Aug 22, 2018

Conversation

autarch
Copy link
Member

@autarch autarch commented Aug 19, 2018

Instead of passing the level name around and turning it into a number over and
over, we now turn it into a number once at a public method entry point and
pass that number through to private methods instead of calling public methods
again.

This provides a speed increase in two ways. First, we do much less
validation. Previously we would repeatedly validate the same set of args in
many cases. Two, we only do the name->number lookup once.

sergle and others added 2 commits August 19, 2018 17:21
Instead of passing the level name around and turning it into a number over and
over, we now turn it into a number once at a public method entry point and
pass that number through to private methods instead of calling public methods
again.

This provides a speed increase in two ways. First, we do much less
validation. Previously we would repeatedly validate the same set of args in
many cases. Two, we only do the name->number lookup once.
@autarch autarch merged commit 6aedb7d into master Aug 22, 2018
@autarch autarch deleted the autarch/sergle-rework branch August 22, 2018 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants