ncatelli / lr

A minimal LR parser generator framework
Apache License 2.0
1 stars 0 forks source link

Investigate how to improve table generation performance #41

Open ncatelli opened 1 year ago

ncatelli commented 1 year ago

Any improvements to the OrderedSet container will have a massive impact on the throughput as the OrderedSet::insert method is the hottest code path in the entire program, likely from the closure calls in state generation. Initially, my ideas to improve this are to remove the redundant hashing of the ordered set, instead replacing the map with a hasher that just takes a value, as the hash is generated on insert.