eggheads / eggdrop

The Eggdrop IRC Bot
GNU General Public License v2.0
500 stars 84 forks source link

trace-Functions called to many times #854

Open michaelortmann opened 5 years ago

michaelortmann commented 5 years ago

I see trace-Functions and related functions called to many times, for example during startup of a bot:

https://github.com/eggheads/eggdrop/tree/cbb5dad2566a2b57d6cb8574724433b80827441d/src/mod/server.mod/server.c#L1368 5 times https://github.com/eggheads/eggdrop/tree/cbb5dad2566a2b57d6cb8574724433b80827441d/src/mod/server.mod/server.c#L1330 6 times https://github.com/eggheads/eggdrop/tree/cbb5dad2566a2b57d6cb8574724433b80827441d/src/mod/irc.mod/irc.c#L1019 3 times

It's not really a bug, but a waste of CPU.

michaelortmann commented 4 years ago

Looks like we set TCL_TRACE_READS too often.