aboutsummaryrefslogtreecommitdiff
path: root/src/regex/regex.c
diff options
context:
space:
mode:
authorgrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-12-13 18:48:36 +0000
committergrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-12-13 18:48:36 +0000
commit200a8c6a6c232c4db2ac984be267121a5692fec7 (patch)
tree0366e0c81eeff1c92d49072273f4ad29cdf21b72 /src/regex/regex.c
parenta3b0f8749e1c198dc66324614e6e0567de052bc1 (diff)
-reduxing regex dfa_merge_nondistinguishable_states memory consumption by 32x
git-svn-id: https://gnunet.org/svn/gnunet@25462 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/regex/regex.c')
-rw-r--r--src/regex/regex.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/regex/regex.c b/src/regex/regex.c
index db3f85693e..ef49782295 100644
--- a/src/regex/regex.c
+++ b/src/regex/regex.c
@@ -2563,7 +2563,7 @@ GNUNET_REGEX_construct_dfa (const char *regex, const size_t len,
GNUNET_REGEX_context_init (&ctx);
/* Create NFA */
- fprintf (stderr, "N");
+ // fprintf (stderr, "N");
nfa = GNUNET_REGEX_construct_nfa (regex, len);
if (NULL == nfa)
@@ -2582,17 +2582,17 @@ GNUNET_REGEX_construct_dfa (const char *regex, const size_t len,
dfa->start = dfa_state_create (&ctx, nfa_start_eps_cls);
automaton_add_state (dfa, dfa->start);
- fprintf (stderr, "D");
+ // fprintf (stderr, "D");
construct_dfa_states (&ctx, nfa, dfa, dfa->start);
GNUNET_REGEX_automaton_destroy (nfa);
/* Minimize DFA */
- fprintf (stderr, "M");
+ // fprintf (stderr, "M");
dfa_minimize (&ctx, dfa);
/* Create proofs and hashes for all states */
- fprintf (stderr, "P");
+ // fprintf (stderr, "P");
automaton_create_proofs (dfa);
/* Compress linear DFA paths */