luceneplusplus / LucenePlusPlus

Lucene++ is an up to date C++ port of the popular Java Lucene library, a high-performance, full-featured text search engine.
luceneplusplus@googlegroups.com
Other
738 stars 232 forks source link

Search performance optimization #179

Closed FishermanZzhang closed 3 years ago

FishermanZzhang commented 3 years ago

We made the following changes:

  1. Use raw pointers instead of weak_ptr
  2. The shared_ptr is used as memory management, and the raw pointer is used as the real worker
  3. Optimized unreasonable function calls
  4. parameter references
  5. Simple functions are inlined
  6. Overwrite BufferedIndexInput::readVInt()

https://github.com/luceneplusplus/LucenePlusPlus/issues/178

@alanw PTAL