5 ms·
"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 pos
by xmodem 12y ago
"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.
- xiaoma 12y ago>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.
- mc_hammer 12y agoi figured the only likely explanation is ecs is overpriced, ;/
- diminish 12y agoAnd 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.
- raverbashing 12y agoThey 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.
- waps 12y agoOr you can use C++ and not worry that your abstractions will cost you measurably in execution time. Of course, there's other disadvantages, but ...
- raverbashing 12y agoYeah... No thanks Unless it's for something very specific, of course.