in reply to H of A optimization
Then you can get rid of the whole 'if $good' if/else statement, and just push unconditionally (and there was no difference in your 'if' and 'else' actions anyway).next if exists $edgeHoH{$a}{$b}; $edgeHoH{$a}{$b} = undef;
Update: Oops, misread another question. But now it seems like you just need a simple hash to store the b's, and skip if you've already seen it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: H of A optimization
by ferrency (Deacon) on Aug 30, 2002 at 20:36 UTC |