A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-August/016725.html below:

[Python-Help] Python threads with suncc (Forte 6.1) compiler

[Python-Dev] FW: [Python-Help] Python threads with suncc (Forte 6.1) compilerMichael Hudson mwh@python.net
05 Aug 2001 14:11:18 -0400
"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