From d4aacffb5581c9fc338833aebc996c27d3f16ada Mon Sep 17 00:00:00 2001 From: Dirk Koopman Date: Wed, 11 Jul 2007 16:15:52 +0100 Subject: [PATCH] improve speed of sh/c/n (a bit)[probably]. --- Changes | 2 ++ cmd/show/configuration.pl | 15 +++++++++------ perl/Version.pm | 2 +- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/Changes b/Changes index e80e894a..dfe89c6a 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,5 @@ +11Jul07======================================================================= +1. improve speed of sh/c/n 09Jul07======================================================================= 1. remove check for PC93 from legacy nodes. This will allow PC10s to be propagated correctly. Probably. diff --git a/cmd/show/configuration.pl b/cmd/show/configuration.pl index 09521cb6..746ab4b0 100644 --- a/cmd/show/configuration.pl +++ b/cmd/show/configuration.pl @@ -16,15 +16,18 @@ my @val; push @out, $self->msg('showconf'); if ($list[0] && $list[0] =~ /^NOD/) { - my @ch = sort {$a->call cmp $b->call} DXChannel::get_all_nodes(); + my %ch; my $dxchan; - foreach $dxchan (@ch) { - @val = sort {$a->call cmp $b->call} grep { $_->dxchan && $_->dxchan == $dxchan } @nodes; + foreach my $n (@nodes) { + $dxchan = $n->dxchan; + push @{$ch{$dxchan->call}}, $n; + } + + foreach my $call (sort keys %ch) { + @val = sort {$a->call cmp $b->call} @{$ch{$call}}; @l = (); - my $call = $dxchan->call; - $call ||= '???'; - $call = "($call)" unless $dxchan->here; + $call = "($call)" unless DXChannel::get($call)->here; push @l, $call; foreach my $ref (@val) { diff --git a/perl/Version.pm b/perl/Version.pm index 93cd53b0..1489fa48 100644 --- a/perl/Version.pm +++ b/perl/Version.pm @@ -11,6 +11,6 @@ use vars qw($version $subversion $build); $version = '1.54'; $subversion = '0'; -$build = '112'; +$build = '113'; 1; -- 2.43.0