diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-30 15:11:40 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-30 15:11:40 +0000 |
commit | 6fff3c54be91dbbfe5e3ffca4204ad0378d70b7d (patch) | |
tree | 7c10778fc957a26c2e9b00882459e163aa548f40 /src/socketengine_kqueue.cpp | |
parent | fce2d243c023660a9afbf01143cde6eda2ec7a88 (diff) |
Tons of optimization of WriteChannel, WriteChannelWithServ, WriteCommon etc, dont call userrec::GetFullHost or snprintf for every item, call it just once.
Turns O(n) calls for every write into O(~1) calls per write.
Remove some debug from the socketengines which makes debugging hard on large channels (write availability message)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6171 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socketengine_kqueue.cpp')
-rw-r--r-- | src/socketengine_kqueue.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/socketengine_kqueue.cpp b/src/socketengine_kqueue.cpp index bbc36ea7f..ebc1fffbd 100644 --- a/src/socketengine_kqueue.cpp +++ b/src/socketengine_kqueue.cpp @@ -137,7 +137,6 @@ int KQueueEngine::DispatchEvents() int i = kevent(EngineHandle, NULL, 0, &ke_list[0], MAX_DESCRIPTORS, &ts); for (int j = 0; j < i; j++) { - ServerInstance->Log(DEBUG,"Handle %s event on fd %d",ke_list[j].flags & EVFILT_WRITE ? "write" : "read", ke_list[j].ident); if (ke_list[j].flags & EV_EOF) { ServerInstance->Log(DEBUG,"kqueue: Error on FD %d", ke_list[j].ident); |