[PATCH] D62138: [Docs] Increase Doxygen cache size

J. Ryan Stinnett via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 20 05:59:40 PDT 2019


jryans created this revision.
Herald added projects: clang, LLVM.
Herald added subscribers: llvm-commits, cfe-commits.

When building Doxygen docs for llvm and clang, it helpfully prints a warning at
the end noting that the `LOOKUP_CACHE_SIZE` value was too small to keep all
symbols in memory.

By increasing to the size it recommends, Doxygen builds have greatly improved
performance. On my machine, time to run `doxygen-llvm` changes from 34 minutes
to 22 minutes, which is a decent amount of time saved by changing a single
number.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D62138

Files:
  clang/docs/doxygen.cfg.in
  llvm/docs/doxygen.cfg.in


Index: llvm/docs/doxygen.cfg.in
===================================================================
--- llvm/docs/doxygen.cfg.in
+++ llvm/docs/doxygen.cfg.in
@@ -385,7 +385,7 @@
 # the optimal cache size from a speed point of view.
 # Minimum value: 0, maximum value: 9, default value: 0.
 
-LOOKUP_CACHE_SIZE      = 2
+LOOKUP_CACHE_SIZE      = 4
 
 #---------------------------------------------------------------------------
 # Build related configuration options
Index: clang/docs/doxygen.cfg.in
===================================================================
--- clang/docs/doxygen.cfg.in
+++ clang/docs/doxygen.cfg.in
@@ -384,7 +384,7 @@
 # the optimal cache size from a speed point of view.
 # Minimum value: 0, maximum value: 9, default value: 0.
 
-LOOKUP_CACHE_SIZE      = 2
+LOOKUP_CACHE_SIZE      = 3
 
 #---------------------------------------------------------------------------
 # Build related configuration options


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62138.200261.patch
Type: text/x-patch
Size: 935 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190520/1402f76f/attachment.bin>


More information about the cfe-commits mailing list