[Lazarus] Multi-threading support in IDE

Vincent Snijders vsnijders at vodafonevast.nl
Thu Aug 13 13:05:57 CEST 2009


Graeme Geldenhuys schreef:
> Hi,
> 
> Does the Lazarus IDE use multi-threading for anything? Will it take 
> advantage of a Quad Core processor?

The IDE itself is single threaded.

> 
> Examples where I think it could be used (if not already)
>  - background parsing of units
>  - fpdoc lookups
>  - compile project in separate thread (currently the IDE is
>    almost completely non responsive when compiling)

Compiler runs in a separate process. On windows this process is run 
asynchronous, on linux there is some issue with TAsyncProcess, Mattias 
and Marc know more about it.

Under windows this works not perfectly though, compile a project with 
-va, it takes a long time, but CPU is used very little (<10%).

> 
> I'm sure there are many other areas as well?
> 
> Does anybody know if FPC takes multiple cores in consideration when 
> compiling?
> 

AFAIK, not yet.

Vincent




More information about the Lazarus mailing list