Skip to content

Define consistent upper bound for hybrid DFA #1089

Answered by BurntSushi
chrisduerr asked this question in Q&A
Discussion options

You must be logged in to vote

It might help to look at the configuration that a meta::Regex uses:

.cache_capacity(info.config().get_hybrid_cache_capacity())
// This makes it possible for building a lazy DFA to
// fail even though the NFA has already been built. Namely,
// if the cache capacity is too small to fit some minimum
// number of states (which is small, like 4 or 5), then the
// DFA will refuse to build.
//
// We shouldn't enable this to make building always work, since
// this could cause the allocation of a cache bigger than the
// provided capacity amount.
//
// This is e…

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by chrisduerr
Comment options

You must be logged in to vote
9 replies
@chrisduerr
Comment options

@BurntSushi
Comment options

@BurntSushi
Comment options

@chrisduerr
Comment options

@BurntSushi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants