From: Charlie Bowman Date: 2006-02-14T03:15:28+09:00 Subject: DateTime.parse speed question --=-2A+LX11n3ha0OmHgMpXD Content-Type: text/plain Content-Transfer-Encoding: 7bit I'm trying to speed up a small app that I've written. When I run the profiler I see that 46% of my applications time is spent on Integer#gcd. This seems to be coming from DateTime. I need to store dates, and then find the differences in time between these dates. Is there anything I can do differently or do I just have to suffer the consequences of using ruby's DateTime class? example diff = DateTime.now - data_from_file h,m,s,frac = DateTime.day_fraction_to_time(diff) another example todays_data << [DateTime.parse(time),status,task.chomp] --=-2A+LX11n3ha0OmHgMpXD--