[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Why nobody talks about Lua
- From: Doug Rogers <doug.rogers@...>
- Date: Mon, 15 Feb 2010 15:39:05 -0500
Florian Weimer wrote:
>>> Last time I looked at Python the interpreter used a single lock...
>> It's worse than that. Python's GIL is implemented so badly that you often
>> get worse performance by adding processors. http://blip.tv/file/2232410
> I think this has been fixed. See
> <http://mail.python.org/pipermail/python-dev/2009-October/093321.html>
After reading far too many of the posts in that thread, I finally came
to this conclusion: They've cleaned up the lock itself, but it's still a
single lock (like Lua's lua_lock() macro). The speed-ups reported here:
http://mail.python.org/pipermail/python-dev/2009-October/093375.html
are comparisons against the older implementation of the GIL (Global
Interpreter Lock, if you wondered), not against a single-threaded result.
So there's no performance gain with the threading (like there is with
luaproc when properly configured), but at least they can have efficient
blocking IO calls without blocking the application. That's something
that base Lua does not have.
Doug
______________________________________________________________________________________
The information contained in this email transmission may contain proprietary and business
sensitive information. If you are not the intended recipient, you are hereby notified that
any review, dissemination, distribution or duplication of this communication is strictly
prohibited. Unauthorized interception of this e-mail is a violation of law. If you are not
the intended recipient, please contact the sender by reply email and immediately destroy all
copies of the original message.
Any technical data and/or information provided with or in this email may be subject to U.S.
export controls law. Export, diversion or disclosure contrary to U.S. law is prohibited.
Such technical data or information is not to be exported from the U.S. or given to any foreign
person in the U.S. without prior written authorization of Elbit Systems of America and the
appropriate U.S. Government agency.
- References:
- Why nobody talks about Lua, Alex Combas
- Re: Why nobody talks about Lua, Alex Combas
- Re: Why nobody talks about Lua, dcharno
- Re: Why nobody talks about Lua, Alexander Gladysh
- Re: Why nobody talks about Lua, Alex Combas
- Re: Why nobody talks about Lua, Alexander Gladysh
- Re: Why nobody talks about Lua, steve donovan
- Re: Why nobody talks about Lua, Alexander Gladysh
- Re: Why nobody talks about Lua, Eike Decker
- Re: Why nobody talks about Lua, steve donovan
- Re: Why nobody talks about Lua, Alexander Gladysh
- Re: Why nobody talks about Lua, Gé Weijers
- Re: Why nobody talks about Lua, Tony Finch
- Re: Why nobody talks about Lua, Florian Weimer