@Vlad
I have had this issue for a while. In fact I have made it a habit to restart Orion once a day to mitigate this.
I should have reported this ages ago but have been a bit busy - today I am running a very memory intensive process and saw Orion using 9GB of memory for 20 tabs and thought I oughta dig in.
Here is a video (279MB) demonstrating the issue with Orion and Safari side-by-side, hosted on my iCloud Drive: https://www.icloud.com/iclouddrive/02c-S4hqJgglAT7CW7CbRpVAg#Screen_Recording_2022-08-30_at_13.56
Before recording, I did the following:
- Open the same tabs in Orion and Safari - actual tabs I am working on today.
- Quit both applications
During recording, I did the following:
- Open both Orion and Safari, restoring the last window in Safari, so both browsers have the same tabs
- Switch through all open tabs to load them into memory
- Use iStat menus to get cumulative memory usage by both applications including child processes, intermittently opening it to show the memory usage
- Repeatedly close and reopen the same 9 (arbitrarily chosen number) tabs in each browser to simulate having the browser open for a long browsing session that includes opening and closing many tabs.
Observations:
- Memory usage between Safari and Orion is comparable at the start and after opening and loading all the tabs, as expected - around 3.5 to 4GB.
- After repeatedly open and closing the same 9 tabs, Safari uses the same amount of memory as it did before this procedure, as expected - around 3.5GB.
- After repeatedly open and closing the same 9 tabs, Orion uses substantially more memory than it did before this procedure, not as expected! Over 6GB. It does not ever decrease from that number until the parent process is quit.
- Not recorded is further experimentation where I determined the amount of excess memory used by Orion increases proportionally to the number of tabs opened. In other words, the more tabs I open and then close, the more memory it uses. I just closed all tabs and reopened them and Orion is using about 9GB of memory.
Side-issue:
I don't think I captured this in the video, but both Orion and Safari, after opening the same tabs and then closing them so that only 1 tab is open for Safari or 2 pinned tabs for Orion, both use an embarrassingly large amount of memory.
When both start without any tabs, they use something on the order of 200MB each. But after opening a lot of tabs and then closing almost all, both Orion and Safari use more like 1.5 to 2GB of memory! I would expect the memory usage to drop down to the low hundreds of MB. So, clearly an upstream issue, not to be pursued here.
Orion 0.99.119-beta (WebKit 615.1.1)
macOS Version 12.5.1 (Build 21G83)
MacBookPro18,3
Session Info:
Enabled Extensions:
Disabled Extensions:
- LibRedirect (firefox)
- SponsorBlock for YouTube - Skip Sponsorships (firefox)
- Reddit Enhancement Suite (firefox)
- uBlock Origin (firefox)
- Mate Translate – translator, dictionary (chrome)
- Dark Reader (firefox)
- MTG Quick Search (chrome)
- Bitwarden - Free Password Manager (firefox)
Non Default Settings:
- AutofillEnabled => 0
- PreferredBookmarkFolderId => 2
- NotificationsEnabled => 0
- ContentBlockerLastUpdated => 2022-08-12 00:00:00 +0000
- ShowBackgroundImageOnStartPage => 0
- isBackgroundImageDarkOnStartPage => 1
- overflowMenuItems => (
)
- WebAutomaticSpellingCorrectionEnabled => 1
- WebContinuousSpellCheckingEnabled => 1
- WebAutomaticQuoteSubstitutionEnabled => 0
- WebAutomaticDashSubstitutionEnabled => 0
- ShouldShowWelcomeAnimation => 0
- DownloadLocation => /Users/spencer/Downloads
- FirstLaunch => 0
- FirstTimeWebExtensionNotice => 1
- FocusMode => 0
- HyperlinkAuditingEnabled => 0
- LastUsedBuildVersion => 119
- PreCompiledContentRuleListVersion => 119
- LastCrashCheckDate => 2022-08-30 03:57:00 +0000
- NetworkPredictionEnabled => 0
- NextDownloadID => 184
- OpenNewTabsInForeground => 0
- SavedWindowSize => 1512.0,944.0
- SavedWindowPosition => -0.0,-0.0
- SendAdditionalDebugInformationWithCrashReports => 0
- BookmarksBarVisible => 0
- BookmarksSidebarVisible => 0
- BookmarksSidebarWidth => 215.5
- QuitWithConfirmation => 0
- CurrentToolbarSize => small
- ActiveLibraryTab => extensions
- ActivePreferenceTab => websites
- UndoTabClose => 0
- BookmarksLastSynced => 1661831820734.804
- ReadingListLastSynced => 1661831820735.415