in reply to Two simple code style advice questions
This is probably an over optimization, but for really long lists, I use:
my %ntests = map { $_ => undef } @tests;And then test using exists. It reduces the memory footprint slightly (or at least, it used to ... I admit I haven't verified that it's still true in more recent versions of perl.)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Two simple code style advice questions
by choroba (Cardinal) on Jan 16, 2013 at 16:16 UTC | |
Re^2: Two simple code style advice questions
by parv (Parson) on Jan 16, 2013 at 16:02 UTC | |
by choroba (Cardinal) on Jan 16, 2013 at 16:08 UTC | |
Re^2: Two simple code style advice questions
by Anonymous Monk on Jan 16, 2013 at 16:02 UTC |