Skip to content
  • Matthias Männich's avatar
    Ninja: Cache ConvertToNinjaPath results to avoid repeat work · 7374cb85
    Matthias Männich authored and Brad King's avatar Brad King committed
    
    
    Calls to this method may dominate generation time in some cases.
    Measurements for configuring cmake itself show a cache hit rate of ~57%
    (7753 total calls, 4453 cache hits).  For a larger project (that also
    makes use of custom targets as prerequisite for all compile targets),
    the measured cache hit ratio is ~96% (2530827 total calls, 2433124 cache
    hits).  For this project the observable cmake runtime could be reduced
    from 40s to 30s.
    
    Signed-off-by: default avatarMatthias Maennich <matthias@maennich.net>
    7374cb85