Re: DateTime module and epoch time

2006-05-15 Thread Dave Rolsky
On Mon, 15 May 2006, Praveen Ray wrote: If you have to create lots of objects from _different_ epochs, it's probably going as fast as it can. However, if you're likely to see the same epoch repeatedly, you could do some sort of memoization and see a speed boost. An XS backend to DateTime

Re: DateTime module and epoch time

2006-05-15 Thread Praveen Ray
If you have to create lots of objects from _different_ epochs, it's probably going as fast as it can. However, if you're likely to see the same epoch repeatedly, you could do some sort of memoization and see a speed boost. -dave An XS backend to DateTime would also make it faster, won't

Re: DateTime module and epoch time

2006-05-12 Thread Dave Rolsky
On Sat, 13 May 2006, Rick Measham wrote: Lenny Rachitsky wrote: I'm trying to improve the performance of some code, and I've found that a lot of the inefficiencies I have are caused by a large number of DateTime object creations. Do you use every one of these DateTime objects, or are you just

Re: DateTime module and epoch time

2006-05-12 Thread Rick Measham
Lenny Rachitsky wrote: I'm trying to improve the performance of some code, and I've found that a lot of the inefficiencies I have are caused by a large number of DateTime object creations. Do you use every one of these DateTime objects, or are you just creating them all and only using some? If

Re: DateTime module and epoch time

2006-05-12 Thread Dave Rolsky
On Fri, 12 May 2006, Lenny Rachitsky wrote: I'm trying to improve the performance of some code, and I've found that a lot of the inefficiencies I have are caused by a large number of DateTime object creations. I would like to update the code to create the object only once, and update it with d

DateTime module and epoch time

2006-05-12 Thread Lenny Rachitsky
I'm trying to improve the performance of some code, and I've found that a lot of the inefficiencies I have are caused by a large number of DateTime object creations. I would like to update the code to create the object only once, and update it with different epoch times, instead of creating a new