vinum-team / Vinum

A modern reactive state management library for correctness and speed.
MIT License
16 stars 1 forks source link

lazy computing #2

Closed sinlerdev closed 1 year ago

sinlerdev commented 1 year ago

It could be worthwhile investing in lazy computing as it could drastically decrease updates in some dependency trees. Though this technique could not have an actual difference in a real world game (realistically, you use all of your state objects, otherwise, they are useless).

Additionally, since lazy evaluation is a built-in feature which automatically stops unneeded updates.

sinlerdev commented 1 year ago

I kept thinking about this, and I found that implementing such an optimization that doesn't have a very high-performance gain wouldn't be beneficial, as ideally, all of your state objects should be in usage.

I will close this for now, but if I found any valuable use case and the issue wasn't already reopened, I will do reopen it.