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

perf: tracingModel to computed artifact #1668

Merged
merged 4 commits into from
Feb 8, 2017
Merged

Conversation

paulirish
Copy link
Member

Right now we're generating a traceviewer tracingModel twice.

It's fairly expensive, so by moving it to a computed artifact, we get caching for free. Woo!

@paulirish paulirish changed the title tracingModel to computed artifact perf: tracingModel to computed artifact Feb 8, 2017
@brendankenny
Copy link
Member

before:
screen shot 2017-02-07 at 19 09 00

after:
screen shot 2017-02-07 at 19 08 09

savings of 2 seconds (± whatever rounding debug uses)!

Copy link
Member

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's beautiful. LGTM

@brendankenny brendankenny merged commit ec5fbe3 into master Feb 8, 2017
@brendankenny brendankenny deleted the traceprocessor-caching branch February 8, 2017 04:58
const model = tracingProcessor.init(trace);
const pending = [
artifacts.requestSpeedline(trace),
FMPMetric.audit(artifacts),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this could have moved to traceOfTab to avoid calling into another audit. Next time :)

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

2 participants