Hacker News new | comments | show | ask | jobs | submit login

"We have lots of EC2 instances and a slow function called in a tight inner loop, so we saved a bunch of cash by making it slightly quicker" - summed up blog post in one sentence.

Some details about what tools you used to find the culprit, or how you optimised it, might be more interesting.

>How shaving 0.001s from a function saved $400/mo on Amazon EC2

Without reading the article, I figured there was only one likely explanation—the function gets called a lot.

And ruby, python, js could focus on optimizing some frequently used core class methods (strings, arrays) and it'll save the earth billions of dollars, will help the environment and some national economies.

They do, but of course, it also needs to be generic enough.

But you can optimize their usage in your code.

They probably could save that amount of money by maybe trying different machines/providers.

I wonder what's the annual worldwide cost of parsing XML for example.

Or you can use C++ and not worry that your abstractions will cost you measurably in execution time. Of course, there's other disadvantages, but ...

Yeah... No thanks

Unless it's for something very specific, of course.

i figured the only likely explanation is ecs is overpriced, ;/

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact