Accelerate Firefox by compressing the database

Source: Internet
Author: User
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 ~

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.