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

Optional self object to avoid poor with performance #217

Merged
merged 1 commit into from
May 14, 2011
Merged

Conversation

masylum
Copy link
Contributor

@masylum masylum commented May 14, 2011

I think it could be good to have an optional self namespace to hold the locals, so you can avoid with poor performance and name collision with helpers.

The default would be using with as it is right now.

@danielbeardsley
Copy link

This is a crazy performance increase: 490ms -> 27ms

Running the benchmarks shows jade-self takes 27ms, where jade takes 490ms.

The fastest non-jade templating engine was ejs and it ran the test in 89ms. Go Jade!

@tj
Copy link
Contributor

tj commented May 14, 2011

merging! I like self muuuuch better than it, thanks

tj added a commit that referenced this pull request May 14, 2011
Optional `self` object to avoid poor `with` performance
@tj tj merged commit 5a4cba9 into pugjs:master May 14, 2011
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.

3 participants