-
Notifications
You must be signed in to change notification settings - Fork 915
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
Whole browser becomes lagging on 11.3.0 #8774
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Hi @apeiniger, thanks for reporting this issue. It's really helpful to know that this issue only occurs in 11.3.0. This may be related to #8691. Could you confirm whether your app reaches the code path Also, if possible, could you provide a minimal app that is affected by this performance issue? |
@dlarocque What is the easiest way to find out if our app reaches the mentioned code path? We mainly use Authentication and Firestore. On the Firestore side we have about 10 onSnapshot calls running in parallel, otherwise it's only standard Firestore calls. |
Hi @apeiniger, we are quite confirmative that the performance issue is created by the utf-8 encoded string comparison. Before a patch is added, please downgrade to Version 11.2.0. Sorry for the inconvenience. Besides, would you be willing to try out a special release when a fix is added? That would be very helpful. |
@milaGGL Sure, happy to try out a special release once it's there. Just let me know. |
I have the same issue and can reproduce it with this code:
"users/1ODZLpoiftVBrNQ1piJwfdrc6GK2/experiments/mc1-1#2022-09-01T12:00:00.000Z/measurements" is a subcollection with 1000 documents that has a timestamp as id, and 2 properties "p" and "t" both numbers. |
11.3.1 does not have the issue, nice :) |
Thanks for confirming! That was fast- I just released it 😅 Before closing this issue, @apeiniger could you confirm that this performance issue is gone after upgrading to 11.3.1? |
@dlarocque Seems to be fixed for me as well. Thanks for the quick turnaround. |
That's great to hear! Thanks for confirming. |
Hi @apeiniger , could you please help custom build and test this fix out? A lazy encoding is used instead of original "encode them all first" method. Hopefully, this should be able to do the UTF-8 encoded string comparison without dragging the performance down.
|
Operating System
macOS Sequoia 15.2
Environment (if applicable)
Arc
Firebase SDK Version
11.3.0
Firebase SDK Product(s)
Firestore
Project Tooling
Vite
Detailed Problem Description
Since the update to 11.3.0 our app became very unresponsive and CPU intensive. A downgrade to 11.2.0 fixes the problem.
Steps and code to reproduce issue
Upgrade from 11.2.0 to 11.3.0
The text was updated successfully, but these errors were encountered: