-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alternative to polling #9
Comments
This has already been asked, but unfortunately that would be outside of the scope of this polyfill. This is also because you can use it in your projects without (or minimally) worrying about the moment the environment on which the project run will start supporting But fortunately this shim is open source! So feel free to take any bit of code that you may need to perform your dirty checks - I could give you some assistance in that. |
I'm curious if my concern is valid or not, I haven't actually tested the performance. Would it be slower to observe a lot of small objects, or one large object? Some perspective: zloirock/core-js#33 |
Define "large". I always think of performing some speed tests but I still have to find the time 😭 As for |
Interesting. I would like to contribute some benchmarks, to see if its viable for real world use :) |
I came up with a simple test, on my machine I get ~24 Hz in Firefox and ~152 Hz in Chrome. It's probably not a fair comparison between different browsers though. |
That was nice, thank you. Comparisons between browsers are totally a fair game, anyway, because that's where the the polyfill will run. |
I think what would also be interesting is comparing between Chrome 34 which didn't have Object.observe enabled, and the latest Chrome. I'm less concerned about mem usage and more about cpu usage and execution speed. |
Closing this while opening #11. |
Hi, I would like to use a polyfill for
Object.observe
, but I'm concerned about dirty checking performance.In this project, there is a method
Platform.performMicrotaskCheckpoint()
which must be manually called. I wouldn't mind having the option to disable polling and manually calling some method to trigger a dirty check.The text was updated successfully, but these errors were encountered: