java/src/org/openantivirus/util PatternOptimizer.java,1.5,1.6

Kurt Huwig <[email protected]> Wed, 26 May 2004 20:08:49 +0000
Newsgroups gmane.comp.security.virus.openantivirus.cvs
Message-ID <[email protected]>
Update of /cvsroot/openantivirus/java/src/org/openantivirus/util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14318/src/org/openantivirus/util

Modified Files:
	PatternOptimizer.java 
Log Message:
Speed improvement: bytes in pattern file are now compared against a sequence of hex digits instead of substring()ed and parsed

Index: PatternOptimizer.java
===================================================================
RCS file: /cvsroot/openantivirus/java/src/org/openantivirus/util/PatternOptimizer.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- PatternOptimizer.java	22 May 2004 12:22:27 -0000	1.5
+++ PatternOptimizer.java	26 May 2004 20:08:46 -0000	1.6
@@ -147,7 +147,8 @@
                 } else {
                     System.out.print('*');
                 }
-                System.out.print(((PatternOffset)it.next()).pattern);
+                System.out.print(
+                        ((PatternOffset)it.next()).pattern.toUpperCase());
             }
             System.out.println();
         }



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click