Currently there is no possible way to disable server.log writing. This is a waste of CPU on large production servers that don't need this feature. Would be useful if there was a config option or server.properties option to allow users to choose to enable this or not.
Although it does write on a separate thread, threads still use CPU
PocketMine-MP: (All versions)
PHP: irrelevant
MCPE version: irrelevant
Do you have any concept of how threads work?
This is a waste of CPU
No. Noobs want to believe removing the log will improve their server performance. As a matter of fact blocking operations on threads don't take any CPU cycles at all... all it has to do is wait for the operation to complete. In the meantime the thread will be suspended and the CPU will do something else.
Since you're so concerned about one little log file, I'd like to remind you, and readers, once again, that level I/O is done on the main thread. _That_ is a waste of CPU time because the main thread then has to wait for disk operations to complete. That is a much bigger problem than a log file.
Then do level I/O in a seperate thread ?
@TheDiamondYT1 congratulations Captain Obvious. I'm making the point that the server log is completely insignificant compared to that problem.
Bump
"This will waste " - disk space. My testing server generates almost 1GB data per week, i have to delete it quite often. I am wondering why there is no option to disable it yet.
Most helpful comment
@TheDiamondYT1 congratulations Captain Obvious. I'm making the point that the server log is completely insignificant compared to that problem.