spikey_wan has asked for the wisdom of the Perl Monks concerning the following question:
I've been having trouble with using Excel, in that it's extremely slow. I think I've isolated the problem, but don't know whether it's to do with perl, my pc, or what.
This script:...
Takes 75 seconds to execute!use Win32::OLE::Const 'Microsoft Excel'; print xlExtractData."\n";
I did this:
perl -D:Prof test1.pl
dprofpp -r tmon.out
and got this result:
My system:Exporter::export has -1 unstacked calls in outer Exporter::Heavy::heavy_export has 1 unstacked calls in outer Total Elapsed Time = 74.89209 Seconds Real Time = 74.89209 Seconds Exclusive Times %Time ExclSec CumulS #Calls sec/call Csec/c Name 99.4 74.45 74.454 538 0.1384 0.1384 Win32::OLE::Const::_Typel +ib 0.36 0.268 74.722 1 0.2678 74.721 Win32::OLE::Const::_Typel +ibs 0.07 0.051 0.051 1 0.0510 0.0510 Win32::OLE::Const::_LoadR +egTypeLib 0.05 0.040 0.040 1 0.0400 0.0400 Win32::OLE::Const::_Const +ants 0.04 0.030 74.892 1 0.0300 74.892 main::BEGIN 0.03 0.020 0.050 3 0.0066 0.0165 Win32::OLE::Const::BEGIN 0.01 0.010 0.010 2 0.0050 0.0050 Config::fetch_string 0.01 0.010 0.010 2 0.0050 0.0050 DynaLoader::BEGIN 0.01 0.010 0.010 3 0.0033 0.0033 vars::BEGIN 0.00 0.000 0.000 1 0.0000 0.0000 Exporter::Heavy::heavy_ex +port 0.00 - -0.000 1 - - Config::TIEHASH 0.00 - -0.000 1 - - DynaLoader::dl_load_file 0.00 - -0.000 1 - - DynaLoader::dl_install_xs +ub 0.00 - -0.000 1 - - warnings::BEGIN 0.00 - -0.000 1 - - Config::import
I'm in well over my head, now. can anyone help me, please?
Thanks,
Spike.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Over a minute to do: use Win32::OLE::Const 'Microsoft Excel';
by guha (Priest) on Sep 09, 2004 at 10:53 UTC | |
|
Re: Over a minute to do: use Win32::OLE::Const 'Microsoft Excel';
by iburrell (Chaplain) on Sep 09, 2004 at 23:08 UTC | |
by spikey_wan (Scribe) on Sep 10, 2004 at 12:27 UTC | |
|
Re: Over a minute to do: use Win32::OLE::Const 'Microsoft Excel';
by terra incognita (Pilgrim) on Sep 09, 2004 at 14:28 UTC | |
|
Re: Over a minute to do: use Win32::OLE::Const 'Microsoft Excel';
by BrowserUk (Patriarch) on Sep 10, 2004 at 12:59 UTC | |
by spikey_wan (Scribe) on Sep 13, 2004 at 12:49 UTC | |
by BrowserUk (Patriarch) on Sep 13, 2004 at 19:51 UTC |