Sort hash keys in C...

2008-04-22 Thread Tim Bunce
The DBI needs to sort the keys in %$attr for connect_cached and prepare_cached to ensure a canonical cache key is generated. Currently this is done in perl and is relatively expensive: my @attr_keys = ($attr) ? sort keys %$attr : (); my $key = do { local $^W; # silence undef warnings

Re: Sort hash keys in C...

2008-04-22 Thread Rudolf Lippan
On Tue, 22 Apr 2008 11:24:17 +0100, Tim Bunce <[EMAIL PROTECTED]> wrote: > The DBI needs to sort the keys in %$attr for connect_cached and > prepare_cached to ensure a canonical cache key is generated. > > Currently this is done in perl and is relatively expensive: > > my @attr_keys = ($attr