aboutsummaryrefslogtreecommitdiffstats
path: root/src/socketengine.cpp
diff options
context:
space:
mode:
authorGravatar Glen Miner2024-12-17 12:47:46 -0500
committerGravatar Sadie Powell2024-12-19 14:10:08 +0000
commitd2df7b24c0494f6da09353518bee9e5d9fba8b38 (patch)
treef1d0ef620b734302edb90d0bc4a8d2ffce09b95b /src/socketengine.cpp
parentOptimized membership lookup for large servers (diff)
downloadinspircd++-d2df7b24c0494f6da09353518bee9e5d9fba8b38.tar.gz
inspircd++-d2df7b24c0494f6da09353518bee9e5d9fba8b38.tar.bz2
inspircd++-d2df7b24c0494f6da09353518bee9e5d9fba8b38.zip
Optimized WHO command
On our server hosting 150K users we noticed that the WHO command was high on the perf capture profile and on closer inspection we noticed that the majority of users do not have the invisible mode set. Since IsModeSet is a small inline function that does an array lookup we were able to reduce server load by calling IsModeSet first to short-circuit the comparatively expensive SharesChannelWith call.
Diffstat (limited to 'src/socketengine.cpp')
0 files changed, 0 insertions, 0 deletions