WMCAlliance / BukkitIRCd

BukkitIRCd was an IRC bridge plugin for Minecraft servers running Bukkit. It creates individual 'bot' users for every player to allow seamless communication.
https://wma.im
Other
5 stars 6 forks source link

Timings - high count for PlayerJoinEvent #93

Open WizardCM opened 11 years ago

WizardCM commented 11 years ago

26-07_20-23-47

More details: http://aikar.co/timings.php?url=5906185

WizardCM commented 10 years ago

It has been determined this is caused by host lookups. My idea for a fix is to check the IP and compare it to a past IP, and if it matches then simply use the old host.

Alternatively, the entire task can be delayed and wait for the asynchronous host lookup, and instead join the user to IRC a little later.

Also - we can add a config option that disables the host lookup in general, for those who don't want it.

Current dev build has it disabled.