Skip to main content

Infer.NET development

Performance lessons learned

Pretty much all automata library code is about performing very lightweight operations on very large collections of objects (states and transitions). To maximize the performance of such code, it is extremely important to make sure that a) the most efficient ways of iterating collections are being used and b) everything that can be inlined is inlined. In particular: