Skip to content

Too many calls to INFILEP under FINDFILE #2404

@rmkaplan

Description

@rmkaplan

@nbriggs noticed that there were an inordinate number of calls to INFILEP when looking up a font, and @hjellinek also noticed a lot of time is going into INFILEP under FONTEXISTS?.

The problem seems to be at a lower level, in the implementation of FINDFILE. Below is a trace of FINDFILE and INFILEP to look for a nonexistent file in a single directory. There are 5 calls to INFILEP, 2 are make no sense (the filename XXX appears also as a subdirectory) and the other 3 all have the same argument--one call should have been enough. I haven't looked further, but FINDFILE goes to SPELLFILE (even with NSFLG T), which goes to FINDFILE-WITH-EXTENSIONS.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions