logo
logo
logo
logo
logo
logo
logo
logo
logo
logo
logo

Chrome


Advertisements
Chrome will no longer occupy memory, reducing its consumption by dozens of percent Chrome (Chromium) is the most popular viewer today, but it is known to be a big consumer of memory. However, the new edition will come with a number of consumption-optimizing optimizations. Today, Chrome is based on measured statistics on websites on every second computer. His closest competitor, Internet Explorer, has a half representation. In spite of all the advantages, Chrome has a long memory consumption problem and many users do not like it. Developers have now looked at the memory consumption of the tooth and the upcoming version 55 should be significantly more cost-effective. We plan to see it in December, but it is now possible to test it within development channels. Optimization concerns..

Sign up now


By registering I agree with your terms

198 tracked servers
285,120 pings / day
60 server outages today

Chrome will no longer occupy memory, reducing its consumption by dozens of percent

Chrome (Chromium) is the most popular viewer today, but it is known to be a big consumer of memory. However, the new edition will come with a number of consumption-optimizing optimizations.

Today, Chrome is based on measured statistics on websites on every second computer. His closest competitor, Internet Explorer, has a half representation. In spite of all the advantages, Chrome has a long memory consumption problem and many users do not like it.

Developers have now looked at the memory consumption of the tooth and the upcoming version 55 should be significantly more cost-effective. We plan to see it in December, but it is now possible to test it within development channels. Optimization concerns mainly the JavaScript core V8. Over the past few months, the V8 team has analysed and significantly reduced the memory consumption of several sites representing today's modern web development, says the developer's blog.

Many testing

In the case of such optimizations, intensive testing is essential, in which specific problems are revealed. Developers use the Telemetry tool, which allows you to make reproducible simulations of working with JavaScript - simulating user interactions with the site, and recording all server and browser behaviours.

In practice, the testing of news sites is done by loading the page, clicking the first link, waiting for full load, and returning. Then he clicks on the next link and repeats this activity several times. In the case of a multimedia content site, the video will start, run for a few seconds, and then select the next item to watch. This activity is repeated several times.

The benchmarks created in this way can be repeated in the test environment during development to track the impact of optimizations on different versions of the browser. The developer has published his tests, so anyone can repeat them.

Developers have added a very detailed JavaScript kernel tracking experience to new versions of Chrome. A browser running with the -trace-gc-object-stats parameter lists memory allocation details for the individual data structures. You can then visualize them with a special tool. The result looks like this:

Based on memory allocation, it is possible to return to the code to see if the individual structures behave as expected or there is a possibility of optimization. We used this tool to detect low efficiency in many data types, writes developers.

Reduce the heap for JavaScript

There is a direct link between garbage collector intensity, latency and memory consumption. For example, the use of a garbage collector may be reduced in such a way that the application receives more memory - it is not necessary to clean it so often and the user does not notice delays. For devices with a small amount of memory (such as cheap phones with 512 MB RAM), however, excessive spreading would result in an out-of-memory killere and the inaction of a greedy application.

Developers have heuristics that dynamically decides what strategy they choose when using the garbage collector. After the cleaning is completed, the statistics of the living objects are executed and the environment determines when the next cleaning is planned. If it decides to save the memory, it will begin to plan the collector run more often.

Another optimization concerns half the page size on the JavaScript heap. Instead of 1MB of pages, the new version uses 512KB. This allows for less fragmentation, reduces memory usage, and allows for more paralleling of smaller pieces of memory.

Memory management for VM

In addition to the heap, the V8 Javascript kernel also uses additional memory for internal VM operations. This memory is allocated in so-called zones that allow very fast allocation and emptying once the zone is canceled again. This is most often used in parsing and compiling scripts.

The scripts are being processed in the background when the page is loaded. Using memory visualization, developers have discovered that this process leaves the tagged zone even after the compilation has finished. A new measure has been taken to cause the zone to be canceled immediately after the compiler is complete. This leads to overall lower memory consumption and, above all, smaller tops.

At the same time, developers have found that the C ++ compiler that builds Chrome does not always optimize the layout of memory arrays. For example, if two boolean variables are in memory, they should occupy adjacent bits in one word or use free bits in the memory already in use. However, the compiler does not always behave properly, so developers have decided to do this by themselves. The result is again a reduction in the amount of unnecessarily allocated memory, but also a higher performance of the parser and the javascript compiler.

Developers promise not to complete this area and plan further zone optimizations. It will focus on devices that have between 512 MB and 1 GB of memory.



From Our Blog

  1. Firefox (1 months ago)
  2. Chrome (1 months ago)
  3. DNS servers (1 months ago)
  4. How to do it: maintenance-free Ubuntu computer for unpretentious users (grandparents) (1 months ago)
  5. How to move a software from one computer to another? (1 months ago)
  6. Which is the top 15 computer programming languages? (1 months ago)
  7. What are some possible applications for IoT? (1 months ago)
  8. Do developers/SW companies give the source code to clients? (1 months ago)
  9. How is source code typically kept secret? (1 months ago)
  10. Which are the top open source projects in PHP? (0 months ago)
  11. Opera vs Chrome browsers comparison (0 months ago)
  12. Which is the best ecommerce php open source? (0 months ago)
  13. How to protect your email from spam? (19 days ago)
  14. What is a browser fingerpring? (10 days ago)

Free variant

Free

  • Non commerce
  • 1 website
  • 10 minutes interval

Basic variant

INR 1,200 / Mo

  • Pro
  • Up to 100 websites
  • 1 minute interval

Unlimited variant

INR 5,281 / Mo

  • Pro
  • Up to 1000 websites
  • 10 seconds interval

Sign up now


By registering I agree with your terms


↑ Scroll back ↑