Live data from Hacker News

Improving Angular performance with 1 line of code

medium.com

11–20 of 118 posts

Re: Improving Angular performance with 1 line of code

#12
post #5

I'd like to see some data indicating there is actually an appreciable performance difference. Indeed, with only one line of code to add, the setup cost is low, but this article asserts a performance gain without any evidence.

The official Angular docs describe it thusly: You may want to disable this in production for a significant performance boost https://docs.angularjs.org/api/ng/provider/$compileProvider I'm inclined to believe the engineers who wrote the docs on this.

I'd be inclined not to believe even myself, had I wrote such a thing, without hard data. Even if I was right then, things may have changed. And just what constitutes significant, anyways?

Re: Improving Angular performance with 1 line of code

#18
post #2

Shouldn't debugging be something you opt-in to rather than opt-out of? Seems like a weird design choice

Django has DEBUG set to True by default, too.

Yes, but it's a setting that you can see and are required to define, it's not a built-in constant that is True unless you define it to be False.
Post reply on HN