Home Comments

Dynamic notifications to Freeze of mutation

Mike HearnMike Hearn Member Mike HearnOrganization: N/AProject: Private game project (tinkering)

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"]
Sign In or Register to comment.