[CDBI] Make name_lc go fast
pharkins at gmail.com
Tue Apr 3 04:07:45 BST 2007
On 4/2/07, Brad Bowman <list at bereft.net> wrote:
> After profiling a CDBI app I found that Class::DBI::Column::name_lc is
> second on the list and in my case, actually does nothing, the names are
> already in lower case:
> # Original with name_lc
Please use the -r flag, so you can measure real time. It's not very
useful to measure CPU time when doing something like DBI calls that
wait a long time but don't use much CPU.
I agree that name_lc looks like it could be better, but measuring wall
time will give you a more useful perspective on the problem.
More information about the ClassDBI