Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Native tabs super slow on Electron v4 #19611

Closed

Description

@rafeca

Prerequisites

Description

OSX native tabs operations super slow under Electron v4

Steps to Reproduce

  1. Build Atom from the Electron v4 branch.
  2. Run it and enable native tabs by clicking on the menu "View -> Show Tab Bar"
  3. Create a new window and see the delay.

Expected behavior:

No delay when creating windows, merging windows, etc.

Actual behavior:

There's some delay that blocks the Atom UI for 5s-10s

Reproduces how often:

100%

Versions

Atom v1.40.0 dev under Electron v4.2.5

Additional Information

macOS version: 10.14.5 (18F132)
(only reproducible on macOS since this option is only available here).

Activity

  1. rafeca commented on Jun 28, 2019

    @rafeca
    ContributorAuthor

    After some investigation, this seems to be caused by the calls we do to remote.getCurrentWindow() to get the window dimensions and store them for next session.

    This call somehow got much slower in some situations on Electron v4, I've created an issue on the electron repository.

  2. rafeca commented on Jun 28, 2019

    @rafeca
    ContributorAuthor

    Ok, more investigation done: seems like there are two separate issues:

    1. The really anormal slowness when using native tabs: This was fixed by fix: lagging when using tabbed window (4-2-x) electron/electron#18314 which got included in Electron v4.2.2. Somehow I was testing with a local build that used Electron v4.2.0 and I could see the issue. Once I upgraded to v4.2.5 the issue was gone 🎉
    2. The slight slowness when resizing the Atom window. This is caused by remote.getCurrentWindow() slowness on Electron v4 electron/electron#19027 and is not fixed yet, but we can workaround it by adding some throttling to the resize listener.

    I'm gonna close this issue since it was about native tabs which is fixed

  3. lock commented on Dec 28, 2019

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  4. locked as resolved and limited conversation to collaborators on Dec 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions