You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, it would be nice to have ::runMemoized() for high performance. Also ::make()->handleMemoized() or ::makeMemoized()->handleMemoized() or ::makeMemoized()->handle() could be implemented by various tricks.
Existing memoization libraries use object instance / stacktrace as part of cache key, so this is problematic for ::make() which always creates new object. Maybe static::class with handle() parameters would be enough to implement cache keys.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, it would be nice to have
::runMemoized()
for high performance. Also::make()->handleMemoized()
or::makeMemoized()->handleMemoized()
or::makeMemoized()->handle()
could be implemented by various tricks.About memoization:
https://github.com/spatie/once
https://github.com/laracraft-tech/memoize
https://github.com/solodkiy/memorize
Existing memoization libraries use object instance / stacktrace as part of cache key, so this is problematic for
::make()
which always creates new object. Maybestatic::class
with handle() parameters would be enough to implement cache keys.Beta Was this translation helpful? Give feedback.
All reactions