Replies: 1 comment
-
FYI, I create PR to reflect the Proxy idea, which is a most similar to today's state. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a complex application with many (1000+) active queries, and have noticed that a decent amount of time is spent in QueryObserver.trackResult. I notice that the mechanism used to trap property get's is using Object.defineProperty. I was contemplating alternative mechanisms for tracking property calls, and ran a performance analysis on them here: jsbenchmark .
We may be able to dramatically improve the performance of this part of the code using either a static class with getters defined, or perhaps a JS Proxy to trap get calls.
Has this be considered before?
Beta Was this translation helpful? Give feedback.
All reactions