Description | Rather than readd this the way the old config had it, maybe we should make it much more CPU friendly when readding. Since config items memory usage does not change once the config is loaded, what about storing this info in a global variable that is updated at startup and /rehash. This way the total config blocks and total config struct memory usage is not recalculated each time /stats Z is called. The /stats Z output can be cleaned up more as well, it appears we recalculate the number of connected users each time it is called, we already have a variable containing this information. Same for channels, etc. The goal is to reduce the CPU usage so much so that it is 'safe' to allow /stats Z to be a user usable flag. |
---|