in reply to Re: Re: Efficient code to auto-generate web pages
in thread Efficient code to auto-generate web pages
A concrete idea is that your long list of hashes should all be one hash of hashes. That reduces the insert lines down to something like:
(And then the information about all of the different hierarchies you have has to be popualted in a hash %is_hierarchy.)my $base = substr($grp, 0, 3); if (exists $is_hierarchy{$base}) { $dsc{$base}{$grp} = $dsc; $title = "$base$ng"; } else { $dsc{other}{$grp} = $dsc; }
|
|---|