Handle of cycles [question]
danjee opened this issue · 2 comments
danjee commented
How does Selma handles graph cycles?
Thanks
slemesle commented
Hi,
Selma builds a cache of visited instances and tries to get the instance from the cache each time.
The first time, Selma will just put the instance as key in cache and the mapping result as value. The second time, Selma will return the already mapped value and use it for it's mapping instead of rebuilding the object.
danjee commented
Thanks