Skip to content
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

GC slows down Threema Web on Firefox #920

Open
Elsensee opened this issue Oct 23, 2019 · 1 comment
Open

GC slows down Threema Web on Firefox #920

Elsensee opened this issue Oct 23, 2019 · 1 comment
Labels
optimization Optimises existing functionality performance Impacts performance

Comments

@Elsensee
Copy link

Bug Description

I noticed while typing that once in a while (every few seconds) Threema Web would slow down (as in.. stop doing anything) and later "catch up" (in the case of typing, the characters previously typed would appear).

I wondered what was going on, stepped into the profiler and noticed a huge gap. investigating this further I found out, that there was a GC running. (I started typing around the 4.8 seconds mark)
threema-web-gclag

Steps to Reproduce (for bugs)

This is now complicated, because the problem doesn't persist on a new tab. It only happens when the tab is open for quite some time, I will fill you in, if i figured out the time span. Please tell me, if you need further information, I have the profiling log, resulting in the screenshot, saved.

  1. Open Threema Web.
  2. Wait some time. Maybe click around, open a few chats, scroll up in chat history, but mainly - wait some time.
  3. Et voilá

Potential Solution

Unfortunately I don't know the internals of Firefox' GC. (And neither do I know the internals of this code)

Your Environment

  • Threema Web version: 2.2.1
  • Threema App version: 4.12 Build 3000510 Google Play
  • Browser name and version: Firefox 70
  • Computer operating system and version: Windows 10 (1903)
@Elsensee Elsensee added awaiting triage Should be triaged by a developer. bug It's a bug! labels Oct 23, 2019
@dbrgn dbrgn added optimization Optimises existing functionality performance Impacts performance and removed awaiting triage Should be triaged by a developer. bug It's a bug! labels Oct 24, 2019
@NicolasGoeddel
Copy link

This happens to me quite often because I have pinned the Threema Web tab in Firefox and I only close it if I have to restart my system which usually happens only one or two times a month.
I am running Ubuntu 19.04, the rest of my environment is the same as that of @Elsensee .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimization Optimises existing functionality performance Impacts performance
Development

No branches or pull requests

3 participants