[fpc-devel] Purpose of "uses ... in"?

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Jul 13 18:27:47 CEST 2010

Marco van de Voort wrote on Tue, 13 Jul 2010:

> In our previous episode, Jonas Maebe said:
>> Furthermore, at least two of "the users" have already posted in this
>> thread saying that they use this functionality (both in FPC and in
>> Delphi). Therefore I don't think it is a good idea to remove or change
>> it.
> Nobody is talking about removing ?

It was suggested (for non-Borland syntax modes) in a quote at the top  
of the message you were replying to.

> (btw afaik the consequences of IN (but also allowing multiple casings in
> general) is that we don't use the OS routines to search for files, but read
> in the entire dir ourselves? Because one full search is cheaper than many
> small ones?)

The directory cache is unrelated to the support for IN 'xxx'. It was  
mainly added
a) because searching directories is very slow on Windows
b) indeed also because of the searching for filenames with different cases.

In case some directory in the search path contains a lot of files  
while only a few units are used (e.g., when doing testsuite runs), it  
actually slows things down though -- and quite severely so when a  
network file system is involved.


This message was sent using IMP, the Internet Messaging Program.

More information about the fpc-devel mailing list