Article Title: Accelerate Firefox by compressing the database. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
It is well known that Firefox is slow to start and close, and the display speed of the smart address bar is also slow. The reason TualatriX has helped us find out is that Firefox saves too much Browsing Information and history in the SQLite database it uses. For details, refer to the thorough optimization to make Firefox no longer stuck.
Today I saw another article in The http://weblog.savanne.be/153-performance-tip-of-the-day that improved Firefox's speed by compressing the SQLite database used by Firefox.
Close Firefox completely, and then execute:
| For f in ~ /. Mozilla/firefox/*. sqlite; do sqlite3 $ f'vacuum; '; done |
This command is completely harmless and will not delete anything. It will only compress the database, reduce the size of the database file, and thus speed up loading historical information in Firefox.
After trying it out, it is indeed somewhat improved. With the help of the TualatriX secret, it is no longer a problem.
In fact, this method is useful to all SQLite programs, such as Liferea. If you want to compress all SQLite programs, you can use the following command:
| Find ~ -Name '*. sqlite'-exec sqlite3 '{} ''VACUUM ;'; |
He will find all the SQLite files in the home directory, compress them, and add them to crontab. This is a good idea ~