Better HN
topnewbestaskshowjobs
Log inSign up

elka

5 karma · joined Mar 1, 2018 (8y ago) · 4 submissions

Submissions

comment 8y ago · link · parent

The optimization is transforming all code that matches the pattern independent from whether the code is hot or not.

The transformation comes with cognitive cost for the developer as it can turn correct code into incorrect code (sparse arrays).

By enabling this one trades complexity for potential performance gains.

This is how I understand premature.

comment 8y ago · link · parent

This is a good example of premature optimization.

comment 8y ago · link · parent

Memory usage of a browser mostly depends on the web page. Compare a static web page with a JavaScript heavy web page that creates thousands of objects.

comment 8y ago · link · parent

I wonder how these locks work with C11 memory model.