Ämne: Re: [dcdev] Re: New Encoding Scheme First |
Från: "Zdenek Stangl" <[email protected]> |
Datum: 2003-12-02 11:17 |
Till: "Direct Connect developers" <[email protected]> |
A note on scanning for eol tokens, whatever they may be, come on, itdoesn't
take any cpu...incoming data is rather small, even on a big hub, dch++ forscanning
instance doesn't take more than 4-5% cpu overall on a 1500 user hub (1ghz
cpu...), and I can assure you that less than 0.01% of that goes to
for the end of line...therefore, imho, no command lengths into
binary...although I dislike the fact that \r\n are two characters, I tend
agree that it's good following standards, and since millions of webservers
etc can handle millions of connections, I don't really see the problem...Iusage
mean, wake up, turn on your profiler and have a look at where the cpu
goes, I can promise you it isn't strcmp in onincomingdata...
/J