Bonjour,

Voici une information qui pourrait être utile à tous ceux qui se plaignent de la lenteur de la compilation de l'EDI lorsque les projets deviennent imposants :
http://groups.google.com/group/borland.public.cppbuilder.non-technical/browse_thread/thread/5abe3bfd133f745a/bdb5bc4202f91746#bdb5bc4202f91746

From: "Andreas Hausladen" <AndreasDOTHausladen@gNOMAILmx.de>
> Subject: BCB 6 Compiler slowness and how to speed it up dramatically
> Newsgroups: borland.public.cppbuilder.non-technical
> Date: Wed, 7 Dec 2005 03:36:47 +0100
>
>
> While I'm improving bcc32pch I found the reason why code insight and the
> IDE compiler are that slow.
>
> First the speed differences on a (3GHz HT):
> Project: 1 datamodule and 2 forms with some buttons and 3 lines of added
> code: Close(), Show(), Close()
>
> original IDE Compiler: 31.34 secs
> After patching: 4.36 secs
>
> What has happend:
> The coreide.bpl registeres some callback functions to the IDE Compiler.
> One of these is an OpenFile callback function that is called for every
> file opening by the compiler. But not only for existing files. The
> compiler uses OpenFile to test if a file exists or not. During
> compilation
> this happens very, very, very, very, ... often. And what does the
> coreide.bpl implementation of OpenFile do? It takes a lot of time for
> non
> existent files, increasing the compiletime dramatically.
>
> The patch is simple: Call GetFileAttributes before invoking the original
> OpenFile implementation and return immediatelly if the file does not
> exist. This modification has also a positive impact on the code insight.
> The kibiz compiler also uses the OpenFile callback. Dam, is it fast now.
> I haven't looked at Delphi's callback function yet, but I could bet
> there
> is the same problem even if the compiler is a lot faster *I hope this is
> so, because then Delphi would get a speed boost in compilation and code
> insight*
>
>
> And here a statistic:
>
> OpenFile callback:
> VALUE HANDLES:
> execution time: 257.4814 ms
> execution count: 794 (send to original OpenFile callback)
> average exec. time: 0.324284 ms
> INVALID_HANDLE_VALUE:
> execution count: 7988 (catched by GetFileAttributes)
>
> Until I have completed the next version of my bcc32pch tool, you can
> download a very small package that fixes this bug.
>
> The "IDE Compiler Speed Improvement" package can be downloaded from
> here:
> http://unvclx.sf.net/downloads/IDECompilerSpeedFix.zip
> The zip files contains a precompiled package for BCB 6 and BCB 5
> (untested) and the source code.
>
>
> --
> Regards,
>
> Andreas Hausladen
Nicolas