Re: Newbie: Data storage and manipulation speed



Thanx for your kind response !
See below for my feedback......

"Larry Serflaten" <serflaten@xxxxxxxxxxxxxx> wrote in message
news:OjUO1$UeGHA.1208@xxxxxxxxxxxxxxxxxxxxxxx

"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.

Hmmm. i'll try to play with the timing more. I mod every 10000 iterations,
maybe i have to fine-tune it.
So i guess DoEvents is my only choice ?

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.


What do you mean by nature? Types ?
Well, like in the table of my original post, I have 3 X Int originally. And
then i add 20 x reals which are coming from calculations.

- 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).


Chunks. I thought about it but like i said in the first post, i dont think
thats possible.
For every calculation iteration i have to "jump" to different places in the
original data (Year, X, Y).
SQL could possibly do it, but the statements would be horendous!!!
especially for me.

Is it true that using a binary file with Put/Get , is faster than looping
through a recordset in ADO ?


Thanx again!
But again, far more information is needed to even discuss possible
improvements.

LFS




.



Relevant Pages

  • RE: .NET SUCKS --- READ FOLLOWING. MICROSOFT IS A SUCKY CO
    ... Any application that must guarantee a response 100% of the time within 1 ... PREALLOCATE all memory you need, ... If your response time requirements are 1 second, ... The app has to respond to the requests in no more than 1 s. ...
    (microsoft.public.dotnet.framework)
  • Re: Error 2 when attempting to print
    ... Thank you for your quick response. ... I did in fact correct ... I've been running with Virtual Memory ... >installed (you can find the amount of physical memory by ...
    (microsoft.public.mac.office.word)
  • Re: Behavioral Genetics: A pseudo science or real scientific discipline
    ... > associated with memory. ... Because the experimental animals performed ... > fundamental conceptual muddle of mainstream psychology. ... > to believe that STM is a loose collection of response classes that are ...
    (sci.bio.evolution)
  • RE: Returning data contained in Ienumerable as type[]?
    ... Thanx for the response. ... I call this method from within a web service. ... CustomerStruct and one datarow in memory at a given time, ... I suspect that this is because it expects a compressed SOAP message. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Memory Problem w/ASUS A7V133 MB in XP Pro - repost
    ... & yes I ran the memory configerator & thats what it came up with. ... Appreciate the response. ... it would not boot with one 256 + one512. ... verifying the 512MB stick consists of 16 memory chips, ...
    (microsoft.public.windowsxp.hardware)