On 5/3/16 1:28 PM, Jakob Stoklund Olesen wrote:
It is not assertions that make unoptimized C++ really slow, it is the lack of 
inlining which is critical to clean up template abstraction goop.

It depends on the assertions. In the case of the JS engine, the particular assertions under discussion change the algorithmic complexity of many algorithms, which makes them much slower in practice.

In particular, the "release+asserts" configuration (--enable-debug --enable-optimize) is much slower than the same thing without --enable-debug in the case of SpiderMonkey.

-Boris

_______________________________________________
dev-tech-js-engine-internals mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals

Reply via email to