Compiler I/O Speed 1.0

By Andreas Hausladen

Freeware 05 Feb 2009

In category

Components > Experts, IDE etc. > IDE

Description

This new tool Compiler I/O Speed optimizes the compiler’s file search by caching directory listings. If this IDE plugin is installed, the compiler will get the file information (existence, size, timestamp) from a cache. This reduces the amount of I/O operations that are needed to find units (or header files) that are not listed in the project file.

The cache is built on the fly. If the compiler asks for a file’s attributes in a directory that isn’t already in the cache, the whole directory listing is read at once so that every other request to this directory is handled by the cache. If a directory doesn’t exist, the cache is configured to return PATH_NOT_FOUND for that directory.

If there was a change in an already cached directory, the cache is rebuilt on the next request. This is done by monitoring the cached directories (FindFirstChangeNotification). If there are more than two directory changes during a compilation, the cache for that specific directory becomes disabled. This is especially for the DCU output directory where the compiler asks for the file attributes for the MAKE command and then starts to create files.

All the directory caches are kept in memory after the compilation. And when the next compilation starts, the tool checks all cached directories for their existence and if they are still valid (=unchanged).

Compiler I/O Speed only works for the actual compilation and code insight. The background parser (Error Insight, Help Insight, …) bypasses the cache. For small application this tool may slow down the compilation (but this has to be proofed). If you have many directories in the global or project “search path” this tool can make a difference.

Informations

  • Status: Fully functional
  • Source: FW
  • Size: 14 095kB

Platforms:

  • CBuilder 2009
  • Delphi 2009

Downloads