[all-commits] [llvm/llvm-project] 561443: [clangd] Optimize Dex::generateProximityURIs().

Sam McCall via All-commits all-commits at lists.llvm.org
Thu Oct 6 08:14:37 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 561443818a15e7b368ddbb58207a14c60ba55c58
      https://github.com/llvm/llvm-project/commit/561443818a15e7b368ddbb58207a14c60ba55c58
  Author: Sam McCall <sam.mccall at gmail.com>
  Date:   2022-10-06 (Thu, 06 Oct 2022)

  Changed paths:
    M clang-tools-extra/clangd/index/dex/Dex.cpp
    M clang-tools-extra/clangd/index/dex/Dex.h

  Log Message:
  -----------
  [clangd] Optimize Dex::generateProximityURIs().

Production profiles show that generateProximityURIs is roughly 3.8% of
buildPreamble. Of this, the majority (3% of buildPreamble) is parsing
and reserializing URIs.

We can do this with ugly string manipulation instead.

Differential Revision: https://reviews.llvm.org/D135226




More information about the All-commits mailing list