Skip to content
  • Marco Bubke's avatar
    Clang: Improve file path caching · efcfb5ee
    Marco Bubke authored
    
    
    The old algorithm was comparing the string two times. One timer for smaller
    and one for larger. And memcmp on a long string still costs. The new one
    has a three state so it can compare smaller, greater and equal in one.
    There is a reverse version too which has big advantage for file paths.
    
    Change-Id: Ica4024f0a071803c697e2c1f26edd3eb1b203f9f
    Reviewed-by: default avatarTim Jenssen <tim.jenssen@qt.io>
    efcfb5ee