[COMPASS-7417] Keeping the side-bar open drastically increases the CPU usage. Created: 07/Nov/23  Updated: 15/Dec/23  Resolved: 14/Nov/23

Status: Closed
Project: Compass
Component/s: Sidebar
Affects Version/s: None
Fix Version/s: 1.41.0

Type: Bug Priority: Major - P3
Reporter: Kevin Mas Ruiz Assignee: Himanshu Singh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS: N/A
node.js / npm versions: N/A
Additional info:


Attachments: File Screen Recording 2023-11-07 at 16.28.33.mov    
Issue Links:
Duplicate
is duplicated by COMPASS-7024 Compass reporting significantly highe... Closed
Related
related to COMPASS-7024 Compass reporting significantly highe... Closed
Assigned Teams:
Developer Tools
Documentation Changes: Not Needed
Sprint: Iteration Oviraptor

 Description   

Problem Statement/Rationale

Compass average CPU usage is pretty high and the performance is degraded, making working with Compass sometimes too slow.

Please be sure to attach relevant logs with any sensitive data redacted.
How to retrieve logs for: Compass; Shell

Steps to Reproduce

  • Open Activity Monitor
  • Open Compass
  • Connect to a cluster
  • Take a look at the activity monitor, in the renderer process, you'll see an increased CPU usage (in my computer more than 30%)
  • Now, collapse the side bar completely.
  • In the acitivity monitor, eventually, the CPU usage will decrease to near 0.

Expected Results

The side-bar shouldn't have significant impact in CPU usage.

Actual Results

The side-bar, when open, consumes around 30% of the total CPU.

Additional Notes

There is also an issue in GitHub: https://github.com/mongodb-js/compass/issues/3219

There is also a video reproducing the issue attached in this ticket.



 Comments   
Comment by Githook User [ 20/Nov/23 ]

Author:

{'name': 'Himanshu Singh', 'email': 'himanshu.singhs@outlook.in', 'username': 'himanshusinghs'}

Message: fix(compass-components): do not keep fallback content when not needed COMPASS-7417 (#5111)
Branch: beta-releases
https://github.com/mongodb-js/compass/commit/560bcaedf7d694e470f6f86d849fc4cc19e11f0d

Comment by Githook User [ 15/Nov/23 ]

Author:

{'name': 'Himanshu Singh', 'email': 'himanshu.singhs@outlook.in', 'username': 'himanshusinghs'}

Message: fix(compass-components): do not keep fallback content when not needed COMPASS-7417 (#5111)
Branch: safe-storage
https://github.com/mongodb-js/compass/commit/560bcaedf7d694e470f6f86d849fc4cc19e11f0d

Comment by Githook User [ 14/Nov/23 ]

Author:

{'name': 'Himanshu Singh', 'email': 'himanshu.singhs@outlook.in', 'username': 'himanshusinghs'}

Message: fix(compass-components): do not keep fallback content when not needed COMPASS-7417 (#5111)
Branch: main
https://github.com/mongodb-js/compass/commit/560bcaedf7d694e470f6f86d849fc4cc19e11f0d

Generated at Wed Feb 07 22:46:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.