lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


In some Redis loading tests, LuaJIT 2.0 (beta) is performing quite nicely, at
about 60% of the runtime of a similar single threaded Python script. 

Using Python's multiprocessing module, 
http://www.ngcrawford.com/2012/03/29/python-multiprocessing-large-files/
chunking large text files , results in a significant performance improvement
over a single process, splitting the works across cores. This is a
multi-threaded approach, but multiple Python interpreters.

I am assuming using the same approach in Lua / LuaJIT would perform even
better, but as a Lua beginner, I have not found the correct approach.
LuaLanes has been suggested. Essentially I am looking for a mechanism to
create a master list of tasks / jobs, when are then dispatched to a number
of worker processes < number of cores in the system.

Can anyone point me in the right direction?



--
View this message in context: http://lua.2524044.n2.nabble.com/Lua-pattern-similar-to-Python-multiprocessing-tp7642010.html
Sent from the Lua-l mailing list archive at Nabble.com.