Changeset 194 for MMagic

Show
Ignore:
Timestamp:
01/05/06 22:57:35 (6 years ago)
Author:
usu
Message:

MMagic.pm (magicMatchStr): Fixed time waste problem.

Location:
MMagic/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • MMagic/trunk/ChangeLog

    r193 r194  
    33        * MMagic.pm (checktype_data): performance improve. 
    44          http://www.namazu.org/trac-namazu/trac.cgi/ticket/8 
     5 
     6        * MMagic.pm (magicMatchStr): Fixed time waste problem. 
    57 
    682005-08-27  NOKUBI Takatsugu  <knok@daionet.gr.jp> 
  • MMagic/trunk/MMagic.pm

    r193 r194  
    916916    # raw string, line number, and subtests until we need the real info. 
    917917    # this saves time otherwise wasted parsing unused subtests. 
    918     $item = readMagicLine(@$item) if @$item == 3; 
     918    if (@$item == 3){ 
     919        my $tmp = readMagicLine(@$item); 
     920        @$item = @$tmp; 
     921    } 
    919922 
    920923    # $item could be undef if we ran into troubles while reading