Useless Optimization#

Rory nails it: optimization is not always a good thing. On today's CPU's, performance is only critical when an actual performance issue stands up, bites you in the knees and gives your grandmother a bad haircut. Hardcore low-level optimizations are a remnant of times when counting bytes actually mattered and everybody worthy of the title 'programmer' could do a 16 bit multiplication with overflow checking in their heads in under a minute. Reversing a string these days... please. Perf hits in today's distributed world linger in network connections, databases and I/O, most of the time not anywhere inside your box unless you're really cranking numbers to achieve world peace. (Modest exaggeration.)

I'm not saying you can't have performance issues in your code - duh - I'm just totally agreeing with Rory that you shouldn't waste your precious time on anticipating them. Furthermore, compilers and runtimes are way smarter these days and can sometimes optimize parts of your code a lot better than you ever could.

By the way, why would you want to reverse a string anyway? (Well except when you run elgooG of course.)

Comments are closed.
All content © 2012, Jelle Druyts
On this page

Recent Photos
www.flickr.com
This is a Flickr badge showing public photos from Jelle Druyts. Make your own badge here.
Advertising
Top Picks
Statistics
Total Posts: 350
This Year: 0
This Month: 0
This Week: 0
Comments: 530
Archives
Sitemap
Disclaimer
This is my personal website, not my boss', not my mother's, and certainly not the pope's. My personal opinions may be irrelevant, inaccurate, boring or even plain wrong, I'm sorry if that makes you feel uncomfortable. But then again, you don't have to read them, I just hope you'll find something interesting here now and then. I'll certainly do my best. But if you don't like it, go read the pope's blog. I'm sure it's fascinating.

Powered by:
newtelligence dasBlog 2.0.7226.0

Sign In