[Groonga-commit] groonga/groonga at 25d0bf4 [master] Reduce the default pat lexicon cache size to 32KiB

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Jan 10 10:26:08 JST 2018


Kouhei Sutou	2018-01-10 10:26:08 +0900 (Wed, 10 Jan 2018)

  New Revision: 25d0bf47e823f09d4f158543c1644c48133bb97c
  https://github.com/groonga/groonga/commit/25d0bf47e823f09d4f158543c1644c48133bb97c

  Message:
    Reduce the default pat lexicon cache size to 32KiB
    
    Because it's enough for < 1KB English texts. We may increase the cache
    size for large lexicon. We can check lexicon size when we open lexicon.

  Modified files:
    lib/db.c

  Modified: lib/db.c (+1 -1)
===================================================================
--- lib/db.c    2018-01-08 00:35:45 +0900 (4d8578d8a)
+++ lib/db.c    2018-01-10 10:26:08 +0900 (19cd4c74a)
@@ -46,7 +46,7 @@ typedef struct {
   unsigned int weight;
 } weight_uvector_entry;
 
-static const uint32_t GRN_TABLE_PAT_KEY_CACHE_SIZE = 1 << 20;
+static const uint32_t GRN_TABLE_PAT_KEY_CACHE_SIZE = 1 << 15;
 
 #define IS_WEIGHT_UVECTOR(obj) ((obj)->header.flags & GRN_OBJ_WITH_WEIGHT)
 
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180110/168b4b04/attachment.htm 



More information about the Groonga-commit mailing list
Back to archive index