]> git.wh0rd.org - fontconfig.git/commit
Eliminate NormalizeDir. Eliminate gratuitous stat/access calls per dir.
authorKeith Packard <keithp@neko.keithp.com>
Mon, 28 Aug 2006 01:19:39 +0000 (18:19 -0700)
committerKeith Packard <keithp@neko.keithp.com>
Mon, 28 Aug 2006 01:19:39 +0000 (18:19 -0700)
commitdb50cbdaf592349c204ab0af0e7061ea72237044
treed4089facdc6840ce276bd214ef87a347853b0eb9
parentd2f786849c0c4503360a5c09469505b05164c6d2
Eliminate NormalizeDir. Eliminate gratuitous stat/access calls per dir.

Normalized directory names offer protection against looped directory trees
but cost enormous numbers of system calls (stat per file in the hierarchy).
Also, cache file directory name contents are validated each time the
directory is modified, don't re-validate every time the cache file is loaded
with an access and stat call.
fc-cache/fc-cache.c
src/fccache.c
src/fccfg.c
src/fcdir.c