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

Improve performance heap utilization of parser #602

Merged
merged 3 commits into from
Sep 27, 2018

Conversation

Gabriella439
Copy link
Collaborator

This decreases the heap utilization of the parser by over 10x (~5.5 MB to
350 KB) and improves performance by about 18% on the example benchmark
program from #108

Before:

time                 289.9 ms   (274.6 ms .. 297.9 ms)
                     0.999 R²   (0.998 R² .. 1.000 R²)
mean                 309.3 ms   (301.0 ms .. 318.3 ms)
std dev              11.08 ms   (8.083 ms .. 14.31 ms)

After:

time                 245.6 ms   (243.0 ms .. 247.1 ms)
                     1.000 R²   (1.000 R² .. 1.000 R²)
mean                 247.5 ms   (246.5 ms .. 248.6 ms)
std dev              1.338 ms   (1.022 ms .. 1.636 ms)

This decreases the heap utilization of the parser by over 10x (~5.5 MB to
350 KB) and improves performance by about 18% on the example benchmark
program from #108

Before:

    time                 289.9 ms   (274.6 ms .. 297.9 ms)
                         0.999 R²   (0.998 R² .. 1.000 R²)
    mean                 309.3 ms   (301.0 ms .. 318.3 ms)
    std dev              11.08 ms   (8.083 ms .. 14.31 ms)

After:

    time                 245.6 ms   (243.0 ms .. 247.1 ms)
                         1.000 R²   (1.000 R² .. 1.000 R²)
    mean                 247.5 ms   (246.5 ms .. 248.6 ms)
    std dev              1.338 ms   (1.022 ms .. 1.636 ms)
I checked in this change by mistake, but it has no effect
This reverts commit 6faa03c.

Turns out that it actually did make a performance difference after all
@Gabriella439 Gabriella439 merged commit 7ebfc6a into master Sep 27, 2018
@Gabriella439 Gabriella439 deleted the gabriel/worker_wrapper branch September 27, 2018 14:31
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.

None yet

1 participant