andy-portmen / country-flags

adds a toolbar button to browser address-bar displaying current physical location of visited website

Home Page:https://webextension.org/listing/country-flags.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

performance on start-up

Djfe opened this issue · comments

how much performance does it take to get the country code for every open tab on start-up, if the user has several hundred tabs open?
Is this stuff executed in the background, so that it doesn't matter?
Can it be delayed until the tab is actually used? (or is that not necessary?)

I would say after the optimizations I've done it is not going to affect the browser performance at all. You can confirm this by installing the extension in the developer mode and then open many tabs and do a reload (extension reload). It will resolve all the IP addresses once the database is ready (once the service worker is initiated).

Please reopen if you can confirm a considerable CPU usage during a reload.