3 ms·
Speaking of closures, remember how HN used to run out of RAM because each page refresh would create new ones? That doesn't happen here, because no new closure i
by sillysaurusx 3y ago
Speaking of closures, remember how HN used to run out of RAM because each page refresh would create new ones? That doesn't happen here, because no new closure is created if both the lexical environment and the compiled code are identical. The number of fns are displayed at the bottom when you're logged in as an admin, so you can verify nothing new is created when you refresh.
Dan has a good writeup about why HN got rid of them, but unfortunately I can't seem to find it. There are still reasons to avoid them (e.g. if you need a stable url), but I'm happy that performance is no longer one of them.