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 of pretty mixins #591

Merged
merged 1 commit into from Apr 15, 2012
Merged

Improve performance of pretty mixins #591

merged 1 commit into from Apr 15, 2012

Conversation

chowey
Copy link
Contributor

@chowey chowey commented Apr 14, 2012

The recent addition of pretty mixins degraded performance noticably for options like "compileDebug: false" or "self: true".

Now we only adjust the compiled jade where mixins are actually being called.

The performance when no mixins are present is now comparable to before. The performance has also improved when mixins are being called. This also works for pretty nested mixins.

The recent addition of pretty mixins degraded performance noticably for options like "compileDebug: false" or "self: true".

Now we only adjust the compiled jade where mixins are actually being called.

The performance when no mixins are present is now comparable to before.
@chowey
Copy link
Contributor Author

chowey commented Apr 14, 2012

I apologize, I should not have submitted the last pull request before more performance testing.

This new version is much better.

@chowey
Copy link
Contributor Author

chowey commented Apr 15, 2012

Performance is approx 2x better for "compileDebug: false" option over my last pull request.

tj added a commit that referenced this pull request Apr 15, 2012
Improve performance of pretty mixins
@tj tj merged commit 36349d9 into pugjs:master Apr 15, 2012
@tj
Copy link
Contributor

tj commented Apr 15, 2012

we could definitely use some more benchmraks in the repo, mine are too small and dont use the options

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