mahmoud / glom

☄️ Python's nested data operator (and CLI), for all your declarative restructuring needs. Got data? Glom it! ☄️
https://glom.readthedocs.io
Other
1.89k stars 61 forks source link

targeted memoization structure for self-recursive structures #186

Open kurtbrose opened 4 years ago

kurtbrose commented 4 years ago

we don't want memoization of all inputs and outputs, because in general this would cause memory usage to balloon

however, have the ability to do some amount of memoization would enable parsing of self-recursive structures which would otherwise result in infinite loops

some possibilities: