View Single Post
Old 2007-07-10, 21:14   #1
bsquared's Avatar
Feb 2007

2·1,789 Posts
Default performance improvement with assembly

What kinds of performance improvements have people seen when using hand optimized assembly routines vs. a high level language like C? For instance, is it possible for assembly to account for a 20% improvement, or 50% (twice as fast) or higher?

I know that this depends on the quality of implementation of both the C and the assembly code, so lets say that the C code has already been tweaked quite a bit, and is performing pretty well.

I've written my own arbitrary precision integer math library, and it performs well for what I need it to do, but I'm trying to get a feel for if it'd be worth the effort to learn some assembly to improve its performance. If the gain is likely to be 10% or so, then the priority is not very high...

thanks for any advice you can offer,
- ben.
bsquared is offline   Reply With Quote