RE: Performance Issue
[email protected] (Claude Brown via beginners) Sat, 17 Jun 2023 08:46:57 +0000
| Newsgroups | perl.beginners |
|---|---|
| Message-ID | <SY4P282MB25219243DEB2A424D6A610CBC759A@SY4P282MB2521.AUSP282.PROD.OUTLOOK.COM> |
LEROYER Benoit [email protected]<mailto:[email protected]>: > When I execute an important perl program on Centos 7 it is very fast but the same program on Rocky Linux 8 is very slow. Perhaps your Rocky Linux is missing a package that is installed on CentOS? Such a missing package might cause your program to use alternative (slower) logic. To check, add this line to the script just before it terminates: print "$_\n" for sort keys %INC; Run the script on both systems and compare the lists. If they are different, you have something to explore. If they are the same, you will need to start profiling the code. This might be as simple as print statements at key points to find the slow section, or using a profiler as suggested by Shlomi Fish. Claude.