"Tim Peters" <tim.one@home.com> writes: > [Guido, on reworking select()] > > Yes, I think we do need this. PyObject_AsFileDescriptor() calls the > > fileno() method which could be a Python call. > > Ya, but for me to believe that *matters*, I have to believe people worried > about high-performance select are passing objects with Python-implemented > fileno methods to begin with. That's quite a stretch, isn't it? They have > to pay for fileno() calls regardless, the question is only whether they pay > it once or twice per object. Posted admittedly without checking any facts: (1) Doesn't the Python fileno() method issue leave you open to ridiculous fileno() methods that mutate the list passed in to select()? (2) AIUI, if you really care about performance you should be using poll() anyway (tho' obviously this depends on your platform having poll() in the first place, and I don't have the faintest idea how widespread it is). Cheers, M. -- The ultimate laziness is not using Perl. That saves you so much work you wouldn't believe it if you had never tried it. -- Erik Naggum, comp.lang.lisp
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4