Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why dynamic modules loading is so slow?

Status
Not open for further replies.

tabaar

Programmer
Joined
Jun 12, 2001
Messages
34
Location
US
I have my M$ VC++ program that has embedded Perl interpreter (perlembed man). Perl script can use modules. But why such construction use IO::Socket::INET; works so slow (on my old Pentium 100 it tooks about 3 secounds to interpret) ?!
So my question: how to make it faster? Maybe static compilation of modules to my program can help? Or executing scripts in one interpreter instance (perlembed man)? Help me please...
 
Tabaar,

A P100 is not, nowadays, a particularly fast machine I'm afraid. It may be that 3 seconds is reasonable for that module.

Have you tried timing the same script with standard Perl instead of the embedded interpreter? Is the speed the same? Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Have You seen the size of standard Perl executable in Win32 (perl.exe)? In my ActivePerl it is about 30K... :) It means that it includes Perl56.dll as my program do and do the same things as described in perlembed man. So the time for interpretation is the quite same as in my program. { sorry for my English }
 
Well yes -- thought it might be, but worth asking.

What about different machines? Is it significantly faster on a newer machine? Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top