Skip to content

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.

2 participants