Perl scripts compile unexpectedly very slowly

Suddenly, compiling my perl scripts started too long. (In about a minute)

It doesn't really matter what I have in the scripts, however it does matter how much I use requireand use.

I think this is in compilation, but I'm not sure. The fact is that if I run only the control part, that is perl -c script.h, it takes about the same time.

My question is how to debug it, how to find out what perl does to find out what takes so long?

+3
source share
2 answers

, require, - ( - unix/linux, Windows ):

$ time perl -c -e 'use strict;'
-e syntax OK

real    0m0.122s
user    0m0.000s
sys 0m0.008s

use/require , , .

+5

Windows, Process Monitor, -. Moose, script , .

+1

Source: https://habr.com/ru/post/1790235/


All Articles