Archived

This forum has been archived. Please start a new discussion on GitHub.

Dynamic notifications to Freeze of mutation

Hello.

Freeze requires that you declare whether a method will mutate state ahead of time. Some methods may or may not change state, depending on some arbitrary conditions. It would be nice if the evictor had an API that let you mark an object as changed, even if it is not marked with ["freeze:write"]. That way you get an efficiency win, as you don't have to conservatively mark objects as ["freeze:write"]