Better HN
topnewbestaskshowjobs
Log inSign up

spyr1014

2 karma · joined Dec 12, 2016 (9y ago) · 4 submissions

Submissions

comment 3y ago · link · parent

I ran that benchmark and can let you know what's going on. The benchmark switches templates using conditionals.

So what is happening is:

1. On the first render, every template that is rendered gets prepared. And there is that 46% improvement. 2. On the second render, some code paths change and some new templates that haven't yet been rendered get rendered. This results in a smaller improvement.

Then over time, as different code paths are exercised, the improvements of compilation reduce as every template has been seen at least once.

2.

A taste of Rust(hackernoon.com ↗)

2 points · by spyr1014 · 8y ago · discuss

3.

A taste of Elixir, a concise and productive language(hackernoon.com ↗)

6 points · by spyr1014 · 9y ago · discuss