Re: text box control

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Larry Serflaten (serflaten_at_usinternet.com)
Date: 07/17/04


Date: Fri, 16 Jul 2004 22:06:07 -0500


"AustinMN" <tacooperX@Xatt.net> wrote
>
> > The point is, you could have designed the application to be more
> > modular,

> Although there were similar themes, there was often no comparison between
> form or function. Searching for airline flights isn't at all like searching
> for concert tickets or hotel conference rooms.

I simply meant you'd have to group them on functionality. Those that use
the same types of controls belong together in a group....

> See my reply to Larry. It was the client's requirements that forced the
> issue. .025 extra seconds to display times 2500 users times 200 displays
> per user times 365 days = 53 man-days per year for that one form.

If a user is displaying a form 200 times a day, and if you assume each
time it has to be reloaded and populated, and that alone costs .025 seconds,
then that user wastes 5 seconds out of his day for the loading that form.

To load and unload that form 200 times in one day, the user would have
to constantly load an unload that form for 7 hours of an 8 hour shift (1 hr
lunch), and could not spend more than about 2 minutes filling it out. That
seems a bit high for one form. It sounds more like a total count for all forms.

>We couldn't take the time to dynamically re-lay out the forms. Since many
> users were on Win95 machines, it was often more like .25 extra seconds.

And that would be less than a minute out of the day.

I'm all for doing what the client wants, but at some point you just gotta
ask, 'When was the last time you went to the doctor and told him what
disease you had and what medicines were needed to fix it' ???

A client certainly might know what they want, but how often are they
knowledgable enough to tell you how to do it?

Each form you add is going to increase the size of your app, causing it
to take longer to load. Then since Windows will load modules on demand,
but not release them unless required, when you properly unload your
forms, you are still going to cause Windows to do more work managing
memory than if you just had a few forms that could stay in memory.
Remember you'd be using the same form for different functions, so the
module does not need to be moved out of memory if it is re-purposed
on the fly. What would be moving in and out of memory would be
the class modules (from the Dlls) which are smaller than the forms, so
you could have more of them in memory.

You do what you gotta do, but I think it would be interesting to do some
timed trials on the over-all efficiency of a verbose design over a more
modular approach....

LFS
 



Relevant Pages

  • Re: What kind of structure should i use to read a freedb txt file with pascal?
    ... > I have to develop a DOS program in PASCAL with FREEPASCAL that reads a ... > the memory. ... i HAVE to load the entire txt file to the memory using some type of ... > searching, for each key pressed by the user, the program should show a ...
    (comp.programming)
  • Re: Text search component??
    ... Depends on how you want to do it, sort of. ... words must be loaded into the component in memory. ... load it from a saved image. ... >Is it totally in Memory or searching a file? ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Memory limit reached with Windows Mobile
    ... That would explain the memory problem - you just can't do that. ... You have to load stuff when it's ... All native DLLs get loaded ...
    (microsoft.public.pocketpc.developer)
  • Re: Memory limit reached with Windows Mobile
    ... That would explain the memory problem - you just can't do that. ... Once I reached the 12 Mb limit, I cannot load any DLLs, yet if I ... Actually, simply by loading our 18 Native DLLs, we reduce the Virtual ...
    (microsoft.public.pocketpc.developer)
  • Re: Generating one table with a terabyte of data
    ... Take any simple string matching issues and run them as external C code on the files before loading. ... not match the job but can be adjusted for greater performance by changing memory type or adjusting IO layouts. ... them after a bulk load. ... Another thing is to split the updates across file sets. ...
    (microsoft.public.sqlserver.dts)