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)
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 fe76d15377..00badc54d8 100644
--- a/src/regex/regex_internal.h
+++ b/src/regex/regex_internal.h
@@ -98,9 +98,14 @@ struct GNUNET_REGEX_StateSet
struct GNUNET_REGEX_State **states;
/**
+ * Number of entries in *use* in the 'states' array.
+ */
+ unsigned int off;
+
+ /**
* Length of the 'states' array.
*/
- unsigned int len;
+ unsigned int size;
};