Re: DateTime::Sort::Key
--- Joshua Hoblitt <[EMAIL PROTECTED]> wrote: > On Wed, Apr 27, 2005 at 10:39:08AM -0500, Dave Rolsky wrote: > > > > On a side note, I don't really like the namespace Sort::Key > itself, since > > it's not clear what that means. I'd think something like > Sort::Datatype > > or Sort::Custom or something like that might be a little clearer. > This is > > something that's probably best discussed on the module authors > list > > (module-authors@perl.org) > > I dislike the namespace as well. It sounds like this module > basically > just sorts objects so I would expect to find both 'Sort' and > 'Object' as > components of it's namespace... well, actually, it can sort anything... and anyway this discussion is useless as Sort::Key has already been officially accepted. Cheers, - Salvador __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: DateTime::Sort::Key
On Wed, Apr 27, 2005 at 10:39:08AM -0500, Dave Rolsky wrote: > > On a side note, I don't really like the namespace Sort::Key itself, since > it's not clear what that means. I'd think something like Sort::Datatype > or Sort::Custom or something like that might be a little clearer. This is > something that's probably best discussed on the module authors list > (module-authors@perl.org) I dislike the namespace as well. It sounds like this module basically just sorts objects so I would expect to find both 'Sort' and 'Object' as components of it's namespace... -J -- pgpiBQpBEWpwR.pgp Description: PGP signature
Re: DateTime::Sort::Key
Dave Rolsky wrote: On Wed, 27 Apr 2005, Salvador Fandino wrote: I would like to ask for permission to use the namespace DateTime::Sort::Key for a variation of my other module Sort::Key that is able to sort objects based on some key of type DateTime. This looks like a handy module, but I'd think the namespace should be Sort::Key::DateTime, so that there could be a family of Sort::Key::XXX modules for various data types. Key::Sort::DateTime was my first option, but as all the DateTime modules were under DateTime namespace I though my module would also be better there... Anyhow, I will rename it to Key::Sort::DateTime and upload it to CPAN. Cheers, - Salvador
Re: DateTime::Sort::Key
On Wed, 27 Apr 2005, Salvador Fandino wrote: I would like to ask for permission to use the namespace DateTime::Sort::Key for a variation of my other module Sort::Key that is able to sort objects based on some key of type DateTime. This looks like a handy module, but I'd think the namespace should be Sort::Key::DateTime, so that there could be a family of Sort::Key::XXX modules for various data types. On a side note, I don't really like the namespace Sort::Key itself, since it's not clear what that means. I'd think something like Sort::Datatype or Sort::Custom or something like that might be a little clearer. This is something that's probably best discussed on the module authors list (module-authors@perl.org) -dave /*=== VegGuide.Orgwww.BookIRead.com Your guide to all that's veg. My book blog ===*/
DateTime::Sort::Key
Hi, I would like to ask for permission to use the namespace DateTime::Sort::Key for a variation of my other module Sort::Key that is able to sort objects based on some key of type DateTime. This module exports an only function "dtkeysort" that's much faster than the core sort when dealing with DateTime objects, some benchmarks follow: $ perl benchmark.pl Ratesort 10e dtkeysort 10e sort 10e 150/s ---84% dtkeysort 10e931/s519% -- Rate sort 100e dtkeysort 100e sort 100e 7.34/s ---93% dtkeysort 100e 102/s 1288% -- s/iter sort 1000e dtkeysort 1000e sort 1000e2.17 ---95% dtkeysort 1000e 0.103 2007% -- s/iter sort 5000e dtkeysort 5000e sort 5000e13.8 ---96% dtkeysort 5000e 0.555 2388% -- Both the module and the benchmark script are attached. Cheers, - Salvador. DateTime-Sort-Key-0.01.tar.gz Description: GNU Zip compressed data benchmark.pl Description: Perl program