Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 55
Default Slows after about 1,000 records?

I am creating an XLS file from a CSV file using COBOL Net Express, adding
one record at a time. I use various INVOKE statements. After about 1,000
records the speed drops to about 1/4 of the prior rate per minute. I doubt
that the speed of reading the input file changes. Is this because of an
Excel overflow buffer issue? How can I fix this? TIA, Paul

  #2   Report Post  
Posted to microsoft.public.excel.misc
jaf jaf is offline
external usenet poster
 
Posts: 300
Default Slows after about 1,000 records?

Hi Paul,
Perhaps. More likely a windows problem.
Your code could be hogging the processor.
In VBA we would put a DOEVENTS after X reads to allow windows to catch up on other business.

Don't know if Cobol has an similar statement.

John


"Paul H" wrote in message ...
I am creating an XLS file from a CSV file using COBOL Net Express, adding
one record at a time. I use various INVOKE statements. After about 1,000
records the speed drops to about 1/4 of the prior rate per minute. I doubt
that the speed of reading the input file changes. Is this because of an
Excel overflow buffer issue? How can I fix this? TIA, Paul

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 55
Default Slows after about 1,000 records?

Thanks John,
That sounds reasonable - my program does a lot of computing. But won't that
solution just let the program run as slowly - just breaking up who is doing
the processing when? And why would it wait until 1,000 records before the
effect starts?


"jaf" wrote in message
...
Hi Paul,
Perhaps. More likely a windows problem.
Your code could be hogging the processor.
In VBA we would put a DOEVENTS after X reads to allow windows to catch up on
other business.

Don't know if Cobol has an similar statement.

John


"Paul H" wrote in message
...
I am creating an XLS file from a CSV file using COBOL Net Express, adding
one record at a time. I use various INVOKE statements. After about 1,000
records the speed drops to about 1/4 of the prior rate per minute. I doubt
that the speed of reading the input file changes. Is this because of an
Excel overflow buffer issue? How can I fix this? TIA, Paul

  #4   Report Post  
Posted to microsoft.public.excel.misc
jaf jaf is offline
external usenet poster
 
Posts: 300
Default Slows after about 1,000 records?

Hi Paul,
If you were to write a tight endless loop, Windows pending tasks & events pile up in a queue.
I've seen app's that can stop the updating of the system clock causing the clock to "lose time".
Allowing Windows to clear it's queue frees up resources.

John

"Paul H" wrote in message ...
Thanks John,
That sounds reasonable - my program does a lot of computing. But won't that
solution just let the program run as slowly - just breaking up who is doing
the processing when? And why would it wait until 1,000 records before the
effect starts?


"jaf" wrote in message
...
Hi Paul,
Perhaps. More likely a windows problem.
Your code could be hogging the processor.
In VBA we would put a DOEVENTS after X reads to allow windows to catch up on
other business.

Don't know if Cobol has an similar statement.

John


"Paul H" wrote in message
...
I am creating an XLS file from a CSV file using COBOL Net Express, adding
one record at a time. I use various INVOKE statements. After about 1,000
records the speed drops to about 1/4 of the prior rate per minute. I doubt
that the speed of reading the input file changes. Is this because of an
Excel overflow buffer issue? How can I fix this? TIA, Paul

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vlookup slows system dee Excel Worksheet Functions 3 March 29th 07 08:54 PM
Filtering slows down a macro Curt D. Excel Worksheet Functions 1 October 13th 06 04:08 AM
Excel worksheet slows computer stevieray Excel Worksheet Functions 1 June 3rd 06 02:05 AM
Excel slows down for no(?) reason... thekovinc Excel Discussion (Misc queries) 0 December 6th 05 06:01 PM
ifsum slows down calculations Peter Nash Excel Worksheet Functions 2 September 10th 05 09:18 AM


All times are GMT +1. The time now is 08:41 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"