Re:Ryan Dahl addresses comments on his recent rant
by kmm on Sunday October 02, 2011 @10:34AM
(#3062929)
Shouldn't string manipulation be more efficient if you have to everything by hand? Besides, using a recursive memory allocator takes away most of the pain and it's more efficient than a garbage collector.
[ Parent
| on HN ]
Re:Ryan Dahl addresses comments on his recent rant
by barrkel on Sunday October 02, 2011 @11:36AM
(#3063072)
It's quite easy to overuse strlen or strcat or otherwise turn an O(n) algorithm into O(n^2). But the efficiency I'd be more concerned with is programmer efficiency finding and fixing security bugs caused by off-by-one buffer lengths and input length checking, and the like (e.g. copying k characters into a char buf[k]).
Re:Ryan Dahl addresses comments on his recent rant
by munin on Sunday October 02, 2011 @10:40AM
(#3062940)
surely every time you re-invent an algorithm you make it more efficient? part of the problem is that there isn't a standard of "maximized efficiency" algorithms for programmers to use, so anything they come up with could be better or worse and for no real reason ..