If the general rule is changed, it will die. Change your mind to solve the problem.
If you encounter some problems, you don't need to look at how others implement them, but think about what to do if you do it yourself.
What should I do? In this way, some problems will be solved. Instead of putting the mindset in the traps that others have previously buried, they cannot climb out.
This method is very useful for handling performance and bottlenecks.
Recently, I encountered a serious performance problem. I have always felt that there is no solution. Why is there no solution?
Because we can see other people's previous implementations. It seems that there is no problem. Bottlenecks are inevitable. No way. Only.
When I came back, I suddenly thought, why should I consider the bottleneck from the original method? To solve this problem, the original design will cause bottlenecks.
So don't look at it. Think about it first, if you do it yourself. How should I go? Is there any other way to address this situation?
Later, the light suddenly appeared. Solve the problem. Solve the performance problem!