Re:Strcpycat
by apaprocki on Friday January 20, 2012 @10:58PM
(#3492554)
If you're talking about inputs that aren't arbitrarily huge, you should try measuring performance using alloca instead of malloc.
[ Parent
| on HN ]
Yes, this. Alloca should only be a couple of instructions on most modern systems, and there is no needed call to free, which is likely the slower of the two calls..