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
                  Rate        sort 10e   dtkeysort 10e
sort 10e         150/s              --            -84%
dtkeysort 10e    931/s            519%              --
                  Rate       sort 100e  dtkeysort 100e
sort 100e       7.34/s              --            -93%
dtkeysort 100e   102/s           1288%              --
                s/iter      sort 1000e dtkeysort 1000e
sort 1000e        2.17              --            -95%
dtkeysort 1000e  0.103           2007%              --
                s/iter      sort 5000e dtkeysort 5000e
sort 5000e        13.8              --            -96%
dtkeysort 5000e  0.555           2388%              --

Both the module and the benchmark script are attached.

Cheers,

  - Salvador.


Attachment: DateTime-Sort-Key-0.01.tar.gz
Description: GNU Zip compressed data

Attachment: benchmark.pl
Description: Perl program

Reply via email to