Bios-Marcel / ServerBrowser

SA-MP Server Browser including some extra functions
Mozilla Public License 2.0
21 stars 8 forks source link

Add compression to RMI #5

Closed Bios-Marcel closed 7 years ago

Bios-Marcel commented 7 years ago

I have noticed, that sending about 1100 SampServer Objects (Java objects) from Server to Client, can, in case that you have got a slow internet connection, take multiplee seconds to complete. Since that is the case, i might consider compressing all SampServer Objects on the server side before sending them to the client. The zipping will happen only once at server startup. Instead of sending Seralized SampServer Objects over RMI i will instead send a byte array containing a list of servers.

Might come in handy: