Actually Regex is taking more time instead of agrep. That's why the idea
of using either agrep or find.
This is small input.txt which I am using it as a input file.
If there is any other way of increasing the speed of same Perl script,
it is really required.

Thanks,
Seema.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Peter Eisengrein
Sent: Wednesday, April 05, 2006 6:35 PM
To: Yekhande, Seema (MLITS); perl-win32-users@listserv.ActiveState.com
Subject: RE: Want to reduce the speed of execution in Perl script.




> system(qq~agrep "$fir\t$sec\t" $outfile > tmp~); ## agrep is an
external 
> utility to find search pattern in a file and transfer it into other
file.

> system(qq~agrep "$thr" tmp > tmp1~); ## agrep is more faster than
regular 
> expression. 

Are two system calls to agrep really faster than a single, well-crafted
regex? This would be the first thing I'd look at to speed performance.
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--------------------------------------------------------

If you are not an intended recipient of this e-mail, please notify the sender, 
delete it and do not read, act upon, print, disclose, copy, retain or 
redistribute it. Click here for important additional terms relating to this 
e-mail.     http://www.ml.com/email_terms/
--------------------------------------------------------
03/21/2006      00      ACCOUNTINFO     Available Funds 6       2627    110     
579     141     1047    422     328
03/21/2006      00      TRACKER Tracker 3       3221    110     923     2188
03/21/2006      00      MARKETPULSE     Most Active     3       1375    94      
1078    203
03/21/2006      00      ACCOUNTINFO     Holdings        6       2173    94      
453     125     782     375     344
03/21/2006      00      ACCOUNTINFO     Balances        3       1624    94      
1171    359
03/21/2006      00      STOCKS  Options Montage 3       2158    110     1563    
485
03/21/2006      00      MLRESEARCH      Focus 1 3       1423    94      1172    
157
03/21/2006      00      NEWS    By Symbol       4       2032    157     1188    
203     484
03/21/2006      00      WalMart SSN 19  3       12688   6766    5391    531
03/21/2006      00      TGAOL.1 PCOE - Place Equity Order       8       3265    
172     906     547     266     234     250     406     484
03/21/2006      00      MLRESEARCH      ML Opinion      4       3657    204     
1312    172     1969
03/21/2006      00      TGAOL.1 PCOE - Order Summary    5       2096    110     
860     485     438     203
03/21/2006      00      MLRESEARCH      Report by Symbol        6       8047    
125     1500    281     344     1235    4562
03/21/2006      00      TGAOL.1 PCOE - Place Mutual Fund Order  10      3594    
109     875     485     235     218     343     109     219     610     391
03/21/2006      00      NEWS    Recent Headlines        3       1469    94      
1109    266
03/21/2006      00      TGAOL.1 PCOE - Ancillary Calls  8       3437    109     
1296    500     250     547     109     219     407
03/21/2006      00      ACCOUNTINFO     Closed Positions        5       3268    
110     1891    532     360     375
03/21/2006      00      HealthChecks    Content Management      3       19626   
767     765     18094
03/21/2006      00      TGAOL.1 PCOE 2 - Login  4       2047    125     953     
578     391
03/21/2006      00      WalMart SSN 20  3       19373   14390   4530    453
03/21/2006      00      TGAOL.1 PCOE 2 - Place Equity Order     3       767     
94      329     344
03/21/2006      00      REPORTCENTER    Account Balances        4       5421    
125     1172    781     3343
03/21/2006      00      TGAOL.1 PCOE 2 - Logout 1       391     391
03/21/2006      00      ACCOUNTINFO     Visa Transactions       4       2282    
125     1266    719     172
03/21/2006      00      WalMart SSN 21  3       15126   9031    5439    656
03/21/2006      00      COE     MLD - Trade Mutual Funds        4       3015    
109     2187    250     469
03/21/2006      00      STOCKS  Quote   6       3453    63      234     2719    
250     94      93
03/21/2006      00      ACCOUNTINFO     Insurance & Annuities   3       1423    
110     923     390
03/21/2006      00      MUTUALFUNDS     Quote   4       1672    94      1407    
78      93
03/21/2006      00      FIXEDINCOME.1   Bond Finder     3       2205    110     
1001    1094
03/21/2006      00      ACCOUNTINFO     Unrealized Gains        5       2375    
94      1297    359     312     313
03/21/2006      00      Enrollment      Enrollment      3       2031    688     
781     562
03/21/2006      00      LOGIN   mldirect - Login        2       1344    172     
1172
03/21/2006      00      ACCOUNTINFO     Activity        6       3830    141     
547     125     2095    266     656
03/21/2006      00      HealthChecks    Defined Benefits        6       28906   
672     844     21953   172     3812    1453
03/21/2006      00      TRADESTOCKS     MLD - PCOE      4       2548    110     
1454    578     406
03/21/2006      00      HealthChecks    Plan Balance    5       12641   579     
437     5141    5234    1250
03/21/2006      00      HealthChecks    Non-Qualified Plans     8       27955   
344     703     13750   187     3721    735     6655    1860
03/21/2006      00      HealthChecks    Account Balances        5       25188   
422     625     23812   125     204
03/21/2006      00      Login.1 Login   2       1564    704     860
03/21/2006      00      MyNetWorth      Total   1       532     532
03/21/2006      00      MyNetWorth      Assets  1       532     532
03/21/2006      00      MyNetWorth      Liabilities     1       516     516
03/21/2006      00      MyNetWorth      Share Data      1       282     282
03/21/2006      00      MyNetWorth      Add Accounts    1       719     719
03/21/2006      00      MyRewards       Total   1       516     516
03/21/2006      00      COE     MLD - PCOE Trade Options        4       5670    
266     4218    515     671
03/21/2006      00      MyRewards       Add Accounts    1       360     360
03/21/2006      00      MANAGECASH      View Paid Checks        4       4717    
94      1296    671     2656
03/21/2006      00      Preferences     Preferences     1       610     610
03/21/2006      00      Help    Help Overview   1       360     360
03/21/2006      00      ACCOUNTINFO     Available Funds 6       2314    125     
516     125     782     438     328
03/21/2006      00      TRACKER Tracker 3       3204    141     1110    1953
03/21/2006      00      Help    FAQ     1       438     438
03/21/2006      00      Help    Security        1       360     360
03/21/2006      00      MARKETPULSE     Most Active     3       3219    94      
2922    203
03/21/2006      00      ACCOUNTINFO     Holdings        6       2500    110     
469     125     1109    359     328
03/21/2006      00      Help    Privacy 1       563     563
03/21/2006      00      ACCOUNTINFO     Balances        3       1845    110     
1360    375
03/21/2006      00      HealthChecks    Password Hints  4       1001    438     
422     63      78
03/21/2006      00      Help    Terms & Conditions      1       438     438
03/21/2006      00      Help    Contact Us      1       375     375
03/21/2006      00      Logoff  Logoff  1       704     704
03/21/2006      00      Internet        newmlol - login 2       1251    94      
1157
03/21/2006      00      STOCKS  Options Montage 3       2328    94      1734    
500
03/21/2006      00      MLRESEARCH      Focus 1 3       1499    94      1265    
140
03/21/2006      00      HealthChecks    Reset Password  6       9561    547     
422     93      78      2609    5812
03/21/2006      00      NEWS    By Symbol       4       2501    125     1844    
188     344
03/21/2006      00      MLRESEARCH      ML Opinion      4       3329    157     
1782    172     1218
03/21/2006      00      TGAOL.1 PCOE - Place Equity Order       8       5392    
141     938     2579    438     328     234     297     437
03/21/2006      00      MLRESEARCH      Report by Symbol        6       7658    
141     2375    141     344     1204    3453
03/21/2006      00      TGAOL.1 PCOE - Order Summary    5       2640    94      
1390    687     235     234
03/21/2006      00      NEWS    Recent Headlines        3       1172    94      
891     187
03/21/2006      00      TGAOL.1 PCOE - Place Mutual Fund Order  10      4405    
109     906     797     438     421     390     109     219     625     391
03/21/2006      00      ACCOUNTINFO     Closed Positions        5       4156    
94      2531    562     453     516
03/21/2006      00      TGAOL.1 PCOE - Ancillary Calls  8       3576    109     
937     905     266     625     94      234     406
03/21/2006      00      REPORTCENTER    Account Balances        4       6157    
94      1532    1219    3312
03/21/2006      00      TGAOL.1 PCOE 2 - Login  4       2376    109     1251    
688     328
03/21/2006      00      TGAOL.1 PCOE 2 - Place Equity Order     3       858     
125     343     390
03/21/2006      00      TGAOL.1 PCOE 2 - Logout 1       813     813
03/21/2006      00      ACCOUNTINFO     Visa Transactions       4       2985    
94      1953    766     172
03/21/2006      00      WalMart Login   3       28830   657     437     27736
03/21/2006      00      COE     MLD - Trade Mutual Funds        4       2249    
94      1249    375     531
03/21/2006      00      STOCKS  Quote   6       1936    62      235     1171    
266     109     93
03/21/2006      00      Internet        mlol - transition       2       235     
141     94
03/21/2006      00      HealthChecks    Advice Access   10      49232   547     
626     7031    5888    297     1765    14719   1953    2047    14359
03/21/2006      00      ACCOUNTINFO     Insurance & Annuities   3       2439    
110     1626    703
03/21/2006      00      MUTUALFUNDS     Quote   4       1642    110     1375    
78      79
03/21/2006      00      FIXEDINCOME.1   Bond Finder     3       3016    110     
1797    1109
03/21/2006      00      ACCOUNTINFO     Unrealized Gains        5       4970    
94      3048    391     1093    344
03/21/2006      00      WalMart SSN 1   3       39064   31766   6704    594
03/21/2006      00      LOGIN   mldirect - Login        2       1656    125     
1531
03/21/2006      00      ACCOUNTINFO     Activity        6       3077    157     
578     125     1312    265     640
03/21/2006      00      WalMart SSN 2   3       21203   6265    14375   563
03/21/2006      00      WalMart SSN 3   3       12483   5546    6437    500
03/21/2006      00      HealthChecks    Statements      12      21936   563     
828     8079    906     5124    234     1390    297     1812    125     203     
2375
03/21/2006      00      WalMart SSN 4   3       14424   7266    6626    532
03/21/2006      00      TRADESTOCKS     MLD - PCOE      4       3579    110     
2235    500     734
03/21/2006      00      WalMart SSN 5   3       15811   7687    7546    578
03/21/2006      00      WalMart SSN 6   3       24764   13734   10483   547
03/21/2006      00      WalMart SSN 7   3       26124   16609   8890    625
03/21/2006      00      WalMart SSN 8   3       17174   9674    7000    500
03/21/2006      00      HealthChecks    AwardChoice / Stock Options     7       
40548   1813    719     19407   3391    1672    13093   453
03/21/2006      00      WalMart SSN 9   3       15394   7705    7173    516
03/21/2006      00      WalMart SSN 10  3       19047   11891   6578    578
03/21/2006      00      WalMart SSN 11  3       16332   10407   5378    547
03/21/2006      00      COE     MLD - PCOE Trade Options        4       3782    
329     2156    797     500
03/21/2006      00      WalMart SSN 12  3       15172   9484    5172    516
03/21/2006      00      MANAGECASH      View Paid Checks        4       6859    
94      2062    1422    3281
03/21/2006      00      ACCOUNTINFO     Available Funds 6       3062    125     
734     203     1016    594     390
03/21/2006      00      TRACKER Tracker 3       4437    125     1531    2781
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to