Skip to content

Fast vs. Compact? #92

Answered by mtf90
liamoc asked this question in Q&A
Discussion options

You must be logged in to vote

The compact implementations typically store adjacency information in a single array whereas the fast implementations store adjacency information at each state individually. Therefore, compact implementations primarily scale with size, whereas fast implementations primarily scale with density.

Unless you work with very large/sparse automata (e.g., one million states+), the compact implementations are a safe default. Ironically, the oftentimes lower memory consumption of the compact implementations can make them faster, too (at least in micro benchmarks).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by liamoc
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