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
We have an RTK Query where the input to the query is large enough that the serialization logic to create the cache key affects performance...
We're still getting some performance hit because it looks like RTK Query does some JSON stringification of the arguments internally even if it's not part of the cache key, but this is manageable (about 50ms of our app startup is spent on this stringification of arguments)
I wonder if we could do some basic caching of the serialization, maybe by adding a WeakMap usage to defaultSerializeQueryArgs?
The text was updated successfully, but these errors were encountered:
Per #3147 (comment) :
I wonder if we could do some basic caching of the serialization, maybe by adding a
WeakMap
usage todefaultSerializeQueryArgs
?The text was updated successfully, but these errors were encountered: