[Lazarus] RE : Console App Development

Hans-Peter Diettrich DrDiettrich1 at aol.com
Sun Aug 14 05:09:34 CEST 2011


Martin schrieb:

> Threading may archive a speed up here. Because simple you have more CPU 
> power at hand. And most OS will be able to supply files faster if 
> requested in parallel.

I doubt that, because concurrent file reads tend to increase disk seeks.


> I know for fact that the synedits get destroyed. At least last time I 
> worked on it, the did get destroyed, so unless there is a real huge new 
> bug....

The source files may be needed for other purposes, so that they stay in 
the file pool.

> If the SynEdits get destroyed, then the textbuffers get destroyed too, 
> including the strings containing the text (one string per line, and I am 
> pretty sure no other part of the IDE has a ref count on any of them.)

Hmmm.

> So the memory is probably available, but due to fragmentation, and small 
> pieces still being allocated, it can't be returned to the OS.

Why return memory to a nowadays system?

DoDi





More information about the Lazarus mailing list