irc: Reorder handlers from most to least probability of
patch 7312031fd0700656a913ba6662c0c84d7a08ebc9
Author: E. Bosch <presidev@AT@gmail.com>
Date: Tue Mar 1 20:02:36 CET 2022
* irc: Reorder handlers from most to least probability of
use (small optimization)
hunk ./irc.py 114
- self.irc_handlers = (
+ self.irc_handlers = \
+ (
hunk ./irc.py 117
+ (IRC_PRIVMSG_RX, self.handle_irc_privmsg, True, ALL_PARAMS),
+ (IRC_PING_RX, self.handle_irc_ping, True, ALL_PARAMS),
hunk ./irc.py 120
- (IRC_LIST_RX, self.handle_irc_list, True, 0),
hunk ./irc.py 121
- (IRC_MOTD_RX, self.handle_irc_motd, True, 0),
hunk ./irc.py 122
- (IRC_NICK_RX, self.handle_irc_nick, False, ALL_PARAMS),
- (IRC_PART_RX, self.handle_irc_part, True, 1),
- (IRC_PASS_RX, self.handle_irc_pass, False, ALL_PARAMS),
- (IRC_PING_RX, self.handle_irc_ping, True, ALL_PARAMS),
- (IRC_PRIVMSG_RX, self.handle_irc_privmsg, True, ALL_PARAMS),
- (IRC_QUIT_RX, self.handle_irc_quit, False, 0),
hunk ./irc.py 123
- (IRC_USER_RX, self.handle_irc_user, False, ALL_PARAMS),
hunk ./irc.py 124
- (IRC_VERSION_RX, self.handle_irc_version, True, 0),
+ (IRC_PART_RX, self.handle_irc_part, True, 1),
hunk ./irc.py 127
+ (IRC_LIST_RX, self.handle_irc_list, True, 0),
+ (IRC_NICK_RX, self.handle_irc_nick, False, ALL_PARAMS),
+ (IRC_MOTD_RX, self.handle_irc_motd, True, 0),
+ (IRC_USER_RX, self.handle_irc_user, False, ALL_PARAMS),
+ (IRC_QUIT_RX, self.handle_irc_quit, False, 0),
+ (IRC_VERSION_RX, self.handle_irc_version, True, 0),
+ (IRC_PASS_RX, self.handle_irc_pass, False, ALL_PARAMS),