From: Ron v. O. <R.A...@Wb...> - 2000-05-06 13:37:42
|
Robert L Krawitz wrote: > > 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. These tests were performed using -O2 -pg. -O2 is the default ghostscript setting. > > BTW, you might also want to try compiling -O6 -funroll-loops or some > other options. In my experience you can gain a few percent using agressive optimization settings. We're looking for algorithmic optimizations here in order to speed the code up a lot more. > > 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. Is this something you'll implement in upcoming releases? Ron van Ostayen R.A...@Wb... Laboratory of Tribology Department of Mechanical Engineering University of Technology Delft |