In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > IT Information >
Share
Shulou(Shulou.com)11/24 Report--
Thanks to CTOnews.com netizen Rui brother, lemo, Mo Shi Mo forget v, soft media user 1185071 clue delivery! CTOnews.com August 7 news, Tencent QQ recently desktop client for a radical reform, Three system platforms are using a brand-new QQ NT architecture, Based on Electron framework development, So also attracted users about "High memory occupation, Large installation package, Slow start" and other concerns.
Recently, QQ technical team published an introduction article on InfoQ platform, sharing its phased progress in memory optimization.
According to reports, the challenges of the new version of QQ in memory are mainly manifested in the following four aspects:
Product form: It consists of 1 complex large panel (100+ modules of varying complexity) and a series of independent function windows. Windows correspond to rendering processes one by one, and the number of window processes greatly affects Electron's memory footprint. For that complex large panel, once there is no fine control, it is easy to cause memory to continue to rise.
▲ Electron window multi-process, picture source InfoQ usage habits: users hang up for a long time. QQ users may hang up for more than a month after logging in once, compared to Web pages that run out of time. During this period, if QQ memory usage is not well controlled, the result may be larger memory, slower user interaction response, or even flash back.
Version iteration: The 24-year-old QQ has a lot of features and features, and the team has been doing this for the past year: starting with the core features, quickly filling in the features of the Windows version, and there are also some high-priority new features to be added. Continuous and rapid version iterations are likely to create new problems that degrade performance.
Application architecture: The new version of QQ relies on an NT core data module (C++ addon) to provide localized data services for the UI. QQ loading experience can be so smooth, this module played a crucial role. At the same time, the linkage optimization with NT also needs to be completed jointly by the C++ development students of the client side. Of course, there will be some communication costs, but it is undeniable that the memory occupation can be suppressed, and the client students have also paid a lot of efforts.
▲ The overall architecture of QQ on desktop side, picture source InfoQ For this, the work of QQ technical team mainly includes the following aspects:
Tool analysis: First, the team needs to use memory analysis tools of different dimensions, from the V8 engine to the process, and then to the entire application, to open up the entire link for multi-angle detailed analysis, in order to locate the bottleneck of memory usage.
Targeted optimization: After the problem is located through the tool, the team adopts a series of targeted optimization strategies, including caching strategies, on-demand loading, elegant degradation, etc.
Online monitoring: After local or small-scale validation, the team needs validation from a wide range of users to confirm that the optimization measures apply to all scenarios. However, getting the amount of memory usage users see in Windows Task Manager is a challenge, and the team has done a lot of research and validation.
Performance degradation prevention and automated testing: To protect hard-earned optimizations and avoid frequent version iterations affecting QQ's memory goals, the team uses development frameworks, tool building, code reviews, and other means to prevent performance degradation.
QQ technical team said, From the result or problem solving point of view, After a series of optimization can basically QQ core chat scene memory control within 300M, 150M installation package size, And the old version of pure Native QQ difference is small. Not only memory occupation, other core experiences, such as cutting AIO fluency is better than the old QQ.
According to CTOnews.com previously reported, Tencent has launched Windows QQ 9.9.1 and Mac QQ 6.9.18 version updates, bringing a number of optimizations and improvements, and more performance improvements are expected in the future.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.