Skip to content

phpMine-MP/ext-raklib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ext-raklib

Native C++23 PHP extension porting pmmp/raklib, the RakNet implementation used by PocketMine-MP. Drop-in replacement for the composer package.

What it's for: the whole UDP transport layer of Bedrock — receiving/sending datagrams, RakNet reliability (ACK/NACK, ordering, sequencing), reassembling split packets, and per-player sessions. It runs in its own thread. The whole reliability/session/socket stack executes in C++ with no per-packet upcall into PHP, which is where the real gain is (the micro-benchmark below only shows the zval-boundary cost).

Benchmark

Operation PHP Native Speedup
EncapsulatedPacket::toBinary 522 ns/op 264 ns/op 2.0×

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors