Speeding up importing Phobos files

H. S. Teoh hsteoh at quickfur.ath.cx
Fri Jun 7 21:19:29 UTC 2019


On Fri, Jun 07, 2019 at 09:09:48PM +0000, KnightMare via Digitalmars-d wrote:
[...]
> I tried compile (in Windows) one small program from today issue
> https://issues.dlang.org/show_bug.cgi?id=19947 under Procmon.exe (tool from
> SysInternals that allow to see what doing some process with
> Net,FS,Registry,Process&Threads). Result for FileSystem only is:
> 3497 requests to FS for create/open,query,close,read/write (libs and dll
> counted too)
> 768! requests just "not found" (dlls and libs counted too)
[...]

This is a known issue that has been discussed before.  The proposed
solution was to cache the contents of each directory in the import path
(probably lazily, so that we don't incur up-front costs) so that the
compiler can subsequently find a module pathname with just a single hash
lookup.

I don't know if anyone set about implementing this, though.


T

-- 
Error: Keyboard not attached. Press F1 to continue. -- Yoon Ha Lee, CONLANG


More information about the Digitalmars-d mailing list