Title:
Process about modifying a code_20041022
CONTENT:
A function written for a few more time, causing the server's HTTP to hang, hard my scalp checking the code, it is really depressed.
This feature contains a database, an additional function, a SMS agent, a retrieval agent, a print agent.
The emergence of the problem is from the beginning. This function is not to be said to be a structure failure. Implementing almost all the workflow configurations and all databases containing workflows. After this colleague, a painful implementation experience I finally launched. Shortly after online, I will hang the server because of the performance problem of this code, but I have a lot of things and a bunch of reports, and I have to do with the customer. Reasonable explanation, you can't say direct reasons. This feature is not allowed to endure the risk of the system after online, and there is a problem again today.
Functional optimization process:
1. In the early stage of optimization, we still stay in the fantasy stage, imagine the reasonable structure of this code, the code structure is rigorous, and the reconstruction is relatively easy, but when the program is opened, Bad Smiles is full of eyes. It is really not to be listed. I feel that I feel some accidents, but I want to reflect a piece of code is not a difficult thing for me. Then list the following plans:
a) Reconstructing magic numbers
b) Reconstruct all variable names
c) Reconstruction function structure
d) Reconstruction function agents all functions
e) Optimize code performance