I implemented a module for nginx. The module can verify a feature data of a finger print. But, the speed of it is so low that we can not believe it. After testing, we found when the verified result is returned slowly.
Maybe I use a bad way to return the verified result. I must get a good way to return it as soon as it can. I am not familiar with the nginx. So, it is so hard to develop a module to put it into effection.
After fightered with the bottle-neck, finally, I get the way to slove it. If you use the static global variables, the speed is normal; otherwise, you will get a bad speed.
I understand why the static key is here and there in a nginx module. However, I didn't understand the root of it. Maybe I can understand it after finished reading the source of nginx.
I found one of my workmater is studying virus. My god! What he is doing?