in reply to Re: Regular expression speed issues
in thread Regular expression speed issues
I didn't quite understand that. According to the profiler Method1 is invoked 2335 times, same as the other ones. Also, it seems the profiler is unreliable since the run times fluctuate wildly when I run the program repeatedly.
Now I get:
Total Elapsed Time = 0.150962 Seconds User+System Time = 0.149962 Seconds Exclusive Times %Time ExclSec CumulS #Calls sec/call Csec/c Name 20.0 0.030 0.028 2335 0.0000 0.0000 main::method1 10.6 0.016 0.014 2335 0.0000 0.0000 main::method3 10.6 0.016 0.016 1 0.0160 0.0160 warnings::BEGIN 0.00 0.000 0.016 2 0.0000 0.0080 main::BEGIN 0.00 0.000 -0.000 1 0.0000 - strict::import 0.00 0.000 -0.000 1 0.0000 - strict::bits 0.00 0.000 -0.000 1 0.0000 - Exporter::import 0.00 0.000 -0.000 1 0.0000 - warnings::import 0.00 0.000 -0.002 2335 0.0000 - main::method2
|
|---|