Skip to content
  • Orgad Shaneh's avatar
    QmlJS: Limit MIME type matching to extension · e5459fb9
    Orgad Shaneh authored
    
    
    This improves performance of MIME type resolving on project loading.
    
    When the MIME type cannot be resolved uniquely by extension to >50 weight,
    the file preamble is read in order to match against magic values in the
    MIME database.
    
    In 3953e2b447862576902abef11ffb4efc56d7a625 the weight of the standard
    file extensions was increased to 70, to at least avoid expensive matching
    when the answer is obvious.
    
    Qml types only have glob patterns anyway, so this shouldn't break
    anything.
    
    Change-Id: If3add50809a4361f877ea261fba6d6f333b2b740
    Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@theqtcompany.com>
    Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
    e5459fb9