in reply to *Fastest* way to print a hash sorted by value

Have you tried DB_File?
  • Comment on Re: *Fastest* way to print a hash sorted by value

Replies are listed 'Best First'.
Re: Re: *Fastest* way to print a hash sorted by value
by diotalevi (Canon) on Aug 09, 2003 at 13:20 UTC

    And the expansion on this is - DB_File (or its big brother BerkeleyDB has a tied hash database (or you can eschew the tying if you like and just it directly. Somewhat like Cache::Cache except different) which is sorted by key. You're pushing the sorting off to the SleepyCat db in C and during the store operation instead of retrieval. Its almost certain you'd want to tweak some of the cache or page settings though.