I made a script run 800% faster by using the Time class instead of the
DateTime class. You can see the scripts and more details at
http://www.recentrambles.com/pragmatic/view/33 Also, using a “memoize”
function whenever possible can greatly increase performance.
I’m still new to ruby, but what does this mean?
On Wed, 2006-03-15 at 03:53 +0900, Vincent F. wrote:
- Using a Set instead of an Array when you only want to store unique
values can help make your code go faster