Time it takes to unload a plugin

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
alex04
Moonbather
Moonbather
Posts: 57
Joined: 2013-09-16, 16:09

Time it takes to unload a plugin

Unread post by alex04 » 2015-03-22, 15:48

I noticed that in latest FF the time it takes plugin is unloaded after you stop using it is 30 seconds. But in PM its still 180 sec or 3 minutes. Which in my opiniom is way too long.

Option that controls this in FF is dom.ipc.plugins.unloadTimeoutSecs https://bugzilla.mozilla.org/show_bug.cgi?id=1007490

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35647
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Time it takes to unload a plugin

Unread post by Moonchild » 2015-03-22, 18:35

Having some measure of control over this is a good thing for the tweakers.
3 minutes is rather long, but 30 seconds is quite short; spawning a new plugin container process is fairly expensive and can cause a stutter in the browser, so I'd rather avoid too aggressive unloading. 1 minute is probably better as a default, since normal navigation would have any plugin likely reused within that time if it is going to be reused.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite