lua-users home
lua-l archive

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


In message <BB5E6944.254F5%mhamburg@adobe.com>, Mark Hamburg writes:
> I played a bit with getting multi-threading working. The Lua threads package
> is out of date and I think leaks mutexes, but it's a reasonable model of
> what one needs to do.
> 
> What I noticed was that performance dropped fairly significantly with
> multi-threading enabled even though I was actually still just running
> single-threaded and there should have been no mutex contention. This was
> more significant for code that was interacting heavily with C code because
> the majority of transitions across the interface involve acquiring the
> mutex. Since some of this is out of concern that the garbage collector needs
> the stacks for the states, I am hoping that the incremental GC will reduce
> this overhead.

I would be extremely suprised if an incremental GC improves the
gap between multi-threading and single-threading.

Cheers,
 drj