in reply to Re^4: Why it takes so much time here?
in thread Why it takes so much time here?

oh, yes it is. 1..100000000 is executed a compile-time (constant folding).

Replies are listed 'Best First'.
Re^6: Why it takes so much time here?
by PerlOnTheWay (Monk) on Dec 28, 2011 at 04:51 UTC

    The same number of int takes less than 1 second to initialize

    Isn't 15 secs too much time even though a scalar requires more storage(16 bytes after test) than int?

      The same number of int takes less than 1 second to initialize

      What does that mean?

        So the amount of time is close for the same amount of iteration whether in c or perl.

        My original question still remains,right?