Currently in src/Alpacc/Lexer/ParallelLexing.hs a decently naïve way of generating the lexer table is used.
There is some slow lookups related to the function newEndoConn used in the function connected.
It could probably do with some memoization and a map to look at previous connected transitions and not just transitions going out from the given state.
Also maybe having a tabel to lookup an Endomorphism with some integer key could be an idea since they occur in many maps.
Currently in
src/Alpacc/Lexer/ParallelLexing.hs
a decently naïve way of generating the lexer table is used. There is some slow lookups related to the functionnewEndoConn
used in the functionconnected
. It could probably do with some memoization and a map to look at previous connected transitions and not just transitions going out from the given state. Also maybe having a tabel to lookup anEndomorphism
with some integer key could be an idea since they occur in many maps.