This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients christian.heimes, sbt, serhiy.storchaka, socketpair
Date 2013-07-04.16:06:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1372954002.09.0.672281191135.issue18329@psf.upfronthosting.co.za>
In-reply-to
Content
Err, you are right. It's buffered. I misread one function call and thought it's not buffered at all.

>>> COUNT = 1000000
>>> LINELEN = 1000
>>> int(LINELEN * COUNT / 8192)
122070

The number looks familiar, doesn't it? :)

I still stand by my analysis that the slow down is caused by Python's method call overhead and the extra function call to _checkReadable(),  readable and _checkClosed(). A C implementation of the raw SocketIO class would reduce the overhead.

The implementation of SocketIO assumes that performance is dominated by IO (e.g. slow internet connection). A local socket pair is faster than 10GBit/sec ethernet or 8 GBit/sec fibre channel.
History
Date User Action Args
2013-07-04 16:06:42christian.heimessetrecipients: + christian.heimes, socketpair, sbt, serhiy.storchaka
2013-07-04 16:06:42christian.heimessetmessageid: <1372954002.09.0.672281191135.issue18329@psf.upfronthosting.co.za>
2013-07-04 16:06:42christian.heimeslinkissue18329 messages
2013-07-04 16:06:41christian.heimescreate