Explore running RakLib without a thread #6294
Labels
Category: Network
Related to the internal network architecture
Performance
Type: Enhancement
Contributes features or other improvements to PocketMine-MP
Description
For years, RakLib has been running within a thread.
However, this creates various issues, reduces flexibility, and the performance gains might not actually be worth it.
RakLib itself is a black box. No one knows how well it performs, but since it's doing relatively little work, it might actually improve performance to take the threads out of the picture.
Moving RakLib onto the main thread would allow for tighter integration between PM and RakLib, making it easier to, for example, directly collect session statistics.
Alternative methods
The text was updated successfully, but these errors were encountered: