Re: Newbie: Data storage and manipulation speed
- From: "Larry Serflaten" <serflaten@xxxxxxxxxxxxxx>
- Date: Tue, 16 May 2006 20:20:20 -0500
"steve" <try@xxxxxxxx> wrote
I am developing a small program that reads some data and then calculates
some parameters based on the data:
-----------------------------------
- Read data from txt file
- Store data (where?)
In memory? (An obvious choice...)
1) No matter my choice of storage, i need a way for the program to "breath".
I dont care much about the time it takes to calculate.
I noticed that wether i use an Access (ADO) Table or an array the program
becomes almost irresponsive. (if i try to click on it, there is a msg at the
top saying Program is not responding") but then if i let it finish it's ok.
It doesnt hang. ** I AM using WithEvents **. Any other trick that i dont
know about ?
You have to decide how to implement it, but during large computational
routines, plan to call DoEvents about 3-5 times per second. Too few and
you get that unresponsive feeling, too many and you increase the total time
to compleation. 3-5 times per second is an optimal range. I gave a per
second value to give you an idea of how often, you'll have to decide when
and where DoEvents will need to be put to hit that range.
What would be my best choice for sacrificing space and gaining in
responsiveness and time ?
That would be difficult to answer without knowing the nature of your data.
- Pagefile = Memory , RAM would soon be filled up , especially in older
256MB systems? This means pagefile acces ....
- Access Table through ADO manipulations.
-Binary txt file, with Get and Put ?
Can you process your data in chunks of suitable size? What is the desired
result of the complete job, etc... But, if memory is insuficient, you'll have to
use files on disk, either you try to optimize that (first choice), or let Windows
do the paging thing (not so desirable).
But again, far more information is needed to even discuss possible improvements.
LFS
.
- Follow-Ups:
- Re: Newbie: Data storage and manipulation speed
- From: steve
- Re: Newbie: Data storage and manipulation speed
- References:
- Newbie: Data storage and manipulation speed
- From: steve
- Newbie: Data storage and manipulation speed
- Prev by Date: Re: Hidden folder ?
- Next by Date: How to return value from an executable created with VB6
- Previous by thread: Newbie: Data storage and manipulation speed
- Next by thread: Re: Newbie: Data storage and manipulation speed
- Index(es):
Relevant Pages
|
Loading