From: Robert L K. <rl...@al...> - 2000-05-06 13:28:57
|
Date: Sat, 06 May 2000 14:37:35 +0200 From: Ron van Ostayen <R.A...@Wb...> As you can see, update_dither and print_color have been succesfully inlined and more important the runtime is MUCH better. However, the performance gain is smaller if you run code without debug and profiling information. The gain is about 30%. But I think this is substantial enough to put the change into the repository (Robert?). If the gain is substantial when compiling optimized then it's worth doing. Don't trust any gains made with anything not compiled with the appropriate -O flag. BTW, you might also want to try compiling -O6 -funroll-loops or some other options. Nevertheless I think the code would speed up a lot if all functions that are called for every dot are inlined. That's probably true. -- Robert Krawitz <rl...@al...> http://www.tiac.net/users/rlk/ Tall Clubs International -- http://www.tall.org/ or 1-888-IM-TALL-2 Member of the League for Programming Freedom -- mail lp...@uu... Project lead for The Gimp Print -- http://gimp-print.sourceforge.net "Linux doesn't dictate how I work, I dictate how Linux works." --Eric Crampton |