[Groonga-commit] groonga/groonga at c233b7c [master] highlight_html: reduce temporary memory usage

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Sat Apr 23 22:07:43 JST 2016


Kouhei Sutou	2016-04-23 22:07:43 +0900 (Sat, 23 Apr 2016)

  New Revision: c233b7cc1f44b29fca637337306da06a364ea4d7
  https://github.com/groonga/groonga/commit/c233b7cc1f44b29fca637337306da06a364ea4d7

  Message:
    highlight_html: reduce temporary memory usage

  Modified files:
    lib/proc/proc_highlight.c

  Modified: lib/proc/proc_highlight.c (+1 -1)
===================================================================
--- lib/proc/proc_highlight.c    2016-04-23 22:06:52 +0900 (46231d3)
+++ lib/proc/proc_highlight.c    2016-04-23 22:07:43 +0900 (9def35b)
@@ -43,7 +43,7 @@ grn_pat_tag_keys(grn_ctx *ctx, grn_obj *keywords,
                  grn_bool use_html_escape)
 {
   while (string_length > 0) {
-#define MAX_N_HITS 1024
+#define MAX_N_HITS 16
     grn_pat_scan_hit hits[MAX_N_HITS];
     const char *rest;
     unsigned int i, n_hits;
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index