ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-win32-users
perl-win32-users
perl starts very slow using WIN32::OLE
by Armin Nolte other posts by this author
Sep 5 2008 2:55AM messages near this date
view in the new Beta List Site
Re: ActiveState releases ActivePerl 5.8.8.824 and ActivePerl 5.10.0.1004 | RE: perl starts very slow using WIN32::OLE
Hi,
I have a real big perl program 
- it runs already for a couple of years and I am always adding some 
features.
So since a few days it needs over 2 Minutes to start!!!
I did a profiling and the problem seems to be the 
Win32::OLE::Const:::_Typelib

So here is the actual output of the profiler:
#################################
%Time    Sec.     #calls   sec/call  F  name
68.28  137.9805      777   0.177581     Win32::OLE::Const::_Typelib

-->  so perl needs 137 seconds for 777 calls!!!
-->  the first line (Win32::OLE operating in debugging mode: _Unique => 1) 
when starting the programm 
      comes at once and after that I have to wait for a while
=>  seems that the first call to Win32::OLE::Const::_Typelib need so long 
???. Is perl searching the lib?


And this is the output of the same program months ago:
#################################
%Time    Sec.     #calls   sec/call  F  name
 1.12    0.0794      686   0.000116     Win32::OLE::Const::_Typelib


I'll be thankfull for any idea!

Cheers 
Armin 

Armin Nolte
Database-Marketing
Deutsche Behindertenhilfe -
Aktion Mensch e.V.
Heinemannstr. 36
53175 Bonn
Tel.: 0228-2092-233
Fax: 0228-2092-222
www.aktion-mensch.de
Thread:
Armin Nolte
Jan Dubois

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved