16.03.2017, 15:02
This is terrible.
The fopen should be moved out. Why open and close a file for every chat message?
This will cause a lot of I/O blocking and take a big toll on the performance. The server is forced to wait until the I/O request is cleared.
The fopen should be moved out. Why open and close a file for every chat message?
This will cause a lot of I/O blocking and take a big toll on the performance. The server is forced to wait until the I/O request is cleared.