[LON-CAPA-cvs] cvs: loncom /interface lonnavmaps.pm

damieng damieng at source.lon-capa.org
Thu Sep 1 15:31:06 EDT 2016


damieng		Thu Sep  1 19:31:06 2016 EDT

  Modified files:              
    /loncom/interface	lonnavmaps.pm 
  Log:
  perf optimization (making symb() faster)
  
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.522 loncom/interface/lonnavmaps.pm:1.523
--- loncom/interface/lonnavmaps.pm:1.522	Mon Jul 18 19:28:57 2016
+++ loncom/interface/lonnavmaps.pm	Thu Sep  1 19:31:05 2016
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavmaps.pm,v 1.522 2016/07/18 19:28:57 raeburn Exp $
+# $Id: lonnavmaps.pm,v 1.523 2016/09/01 19:31:05 damieng Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -4152,6 +4152,7 @@
 }
 sub symb {
     my $self=shift;
+    if (defined $self->{SYMB}) { return $self->{SYMB}; }
     (my $first, my $second) = $self->{ID} =~ /(\d+).(\d+)/;
     my $symbSrc = &Apache::lonnet::declutter($self->src());
     my $symb = &Apache::lonnet::declutter($self->navHash('map_id_'.$first)) 




More information about the LON-CAPA-cvs mailing list