• Adam Simpkins's avatar
    cache results of path_search() · 4c4d3911
    Adam Simpkins authored
    Summary:
    getdeps currently ends up calling `path_search()` repeatedly searching for
    various C/C++ compilers in $PATH.  It ends up doing this multiple times for
    each dependency as it computes the project hashes.  This updates the
    `path_search()` function to cache its results so that we don't keep performing
    the same searches on the file system over and over again.
    
    Reviewed By: chadaustin
    
    Differential Revision: D16354625
    
    fbshipit-source-id: 116293bd2f636632517d26436b2332e6c10624f1
    4c4d3911
envfuncs.py 6.18 KB