Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cache the results of
obj_to_dict
to speed up RMSWriter
after calling `obj_to_dict` with a species once, the result is saved in a lookup dictionary so that subsequent calls are 'instant'. This costs memory but for an expensive function like this that inherently ends up calling on the same input a lot, it should be worth it. related comment: ReactionMechanismGenerator#2499 (comment)
- Loading branch information