aboutsummaryrefslogtreecommitdiff
path: root/src/regex/regex_internal.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-12-13 19:31:14 +0000
committerChristian Grothoff <christian@grothoff.org>2012-12-13 19:31:14 +0000
commita24191dfa264e888ce9a19441bcf317e84345a93 (patch)
tree4781fcb148741a710704aa57cf045494c61a9269 /src/regex/regex_internal.h
parent913ee2753481f2344233aba17066cd637e7a1b27 (diff)
downloadgnunet-a24191dfa264e888ce9a19441bcf317e84345a93.tar.gz
gnunet-a24191dfa264e888ce9a19441bcf317e84345a93.zip
reduce reallocing to improve performance
Diffstat (limited to 'src/regex/regex_internal.h')
-rw-r--r--src/regex/regex_internal.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/regex/regex_internal.h b/src/regex/regex_internal.h
index fe76d1537..00badc54d 100644
--- a/src/regex/regex_internal.h
+++ b/src/regex/regex_internal.h
@@ -98,9 +98,14 @@ struct GNUNET_REGEX_StateSet
98 struct GNUNET_REGEX_State **states; 98 struct GNUNET_REGEX_State **states;
99 99
100 /** 100 /**
101 * Number of entries in *use* in the 'states' array.
102 */
103 unsigned int off;
104
105 /**
101 * Length of the 'states' array. 106 * Length of the 'states' array.
102 */ 107 */
103 unsigned int len; 108 unsigned int size;
104}; 109};
105 110
106 111