Skip to content

Commit

Permalink
perf: remove GC timer that fired once per minute.
Browse files Browse the repository at this point in the history
  • Loading branch information
ckerr authored and John Kleinschmidt committed Oct 20, 2020
1 parent 4ce7ca6 commit 446acd3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions shell/browser/electron_browser_main_parts.cc
Expand Up @@ -405,11 +405,6 @@ void ElectronBrowserMainParts::PreMainMessageLoopRun() {
ui::TouchFactory::SetTouchDeviceListFromCommandLine();
#endif

// Start idle gc.
gc_timer_.Start(FROM_HERE, base::TimeDelta::FromMinutes(1),
base::BindRepeating(&v8::Isolate::LowMemoryNotification,
base::Unretained(js_env_->isolate())));

content::WebUIControllerFactory::RegisterFactory(
ElectronWebUIControllerFactory::GetInstance());

Expand Down
2 changes: 0 additions & 2 deletions shell/browser/electron_browser_main_parts.h
Expand Up @@ -158,8 +158,6 @@ class ElectronBrowserMainParts : public content::BrowserMainParts {
std::unique_ptr<ElectronExtensionsBrowserClient> extensions_browser_client_;
#endif

base::RepeatingTimer gc_timer_;

// List of callbacks should be executed before destroying JS env.
std::list<base::OnceClosure> destructors_;

Expand Down

0 comments on commit 446acd3

Please sign in to comment.