How to carry out optimization work in performance optimization chapter (1)

1. The interviewer's perspective: What do these questions want to examine?

When answering these types of questions, be comprehensive
insert image description here

2. How to carry out optimization work?

This is the key and difficult point in the project. It requires a systematic plan and can also exercise a programmer's professionalism.
insert image description here

3. Clear optimization goals

As programmers, we need to have clear goals. We can't just have vague concepts like ordinary people. We need to think carefully about the problem and solve it from an abstract problem to a data-based entity .
insert image description here

Four, positioning key issues

Prioritize solving the highest proportion of problems
insert image description here

Five and twenty-eight laws

Two general phenomena of the 28 law

  • 80% of errors usually originate from 20% of problems
  • Usually 20% of the energy can solve 80% of the problems
    insert image description here

6. Horizontal comparison of the industry

We use what we already have and refuse to work behind closed doors . For example, what we can do, others have done well, and what they do is very standardized and stable, why do we have to go down the old road of others again, it may not be solved in a short time, everyone has a lot of time. Precious, isn't it bad to spend time optimizing projects and new technologies!
insert image description here

7. Improve indicator monitoring

This indicator is not for yourself, but for everyone in the company, including your supervisors and leaders, and even your boss! Do you think that such a piece of data is easy to understand when placed in front of them?
insert image description here

Eight, online grayscale

Like the seventh point, such a piece of data will make people intuitively feel what we have optimized and how big the gap is from the original. You can know at a glance. The point is that everyone can understand it!
insert image description here

9. Project income

As a programmer, you must deal with data. When it comes to project revenue, we can use our professional vocabulary + numbers to express. In such a report, you are the supervisor who sees the reduction of page loading and memory loss. Wouldn't it be great to see the consumption decrease and the CPU usage from 12% to 3%? If you are the boss and see the cost of the last project, it is expected to save 50,000 yuan per day, which is not a small number! It's not good to invite everyone to go out to have dinner parties, but this also depends on the boss, if it's me, I will definitely do it! Hee hee, after all, there is an old saying that "the one who wins the hearts and minds of the people wins the world".

insert image description here

Image source from: teacher bennyhuo's senior interviewer from Dachang
will take you to crack the Android advanced interview Thank you teacher bennyhuo

Guess you like

Origin blog.csdn.net/qq_27494201/article/details/121640791