|
|
|
|
|
by huggyface
5122 days ago
|
|
"I’m a firm believer that premature optimization is the root of all evil." Gah. Premature optimization is not a willful blindness to all matters performance related. It is a perversion of computer science that it keeps being twisted to such grossly different meanings that Knuth's original statement. Don't celebrate and herald your invalid philosophical righteousness with the Knuth quote (as we've seen over, and over, and over, and over again here on HN. Yes, we all know the quote, and yes it always appears when someone discovers how crap their implementation is). You failed and wasted your time because you didn't consider performance a basic tenet of development, especially on limited mobile devices. |
|
Thanks to a decent architecture the usage of JSONObject was confined to just a few methods that had to be refactored. There were a few more AsyncTasks we had to switch out, but in the end the refactoring took about two days which I would find to be perfectly acceptable "losses" compared to researching the performance of every single class before using it.
I definitely see where you're coming from though and I'll be sure to not throw that quote around without a better explanation in the future (at least on HN).