|
Pankaj Kumar's WeblogRandom thoughts, musings, experiences, ideas, and opinions |
||||||||||||||||||||||||||||||||||||||||||
October 14, 2005Groovy Bubble Sort -- RevisedCouple of days ago I posted the performance numbers for Groovy Bubble Sort contirubted by Graeme Sutherland, with a note that the code may not be optimized for performance. And sure enough, one of the commenters, Guillaume Laforge, pointed out that the program used List where String array is more appropriate. He also posted (and e-mailed me) a modified version of the program. Note: The one appearing as comment to the last post has certain characters missing and doesn't compile. I ran this program on my box and noted down the numbers. As Guillaume reported, his version did the sorting almost 40% faster. However, the performance of generation of random strings didn't improve (quite understandably!). However, what I found really intriguing is that the compiled code ran noticeably slower than the interpreted mode this time, as you can see in the following table:
Can somebody explain this? Posted by pankaj at October 14, 2005 07:25 PMComments
It's the first time i ran through your site and I found it very informative and interesting. Nicely done! thins that excited you at 14: http://www.yahoo.co.uk , think that will make relief , substances that cure you Posted by: Evan Ford on November 6, 2005 07:25 AMPost a comment
|
|||||||||||||||||||||||||||||||||||||||||||
|
Disclaimer: Views expressed here are my own and do not represent those of my employer.
© 2001-2005 Pankaj kumar. All Rights Reserved. |
|||||||||||||||||||||||||||||||||||||||||||