[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Is there's some information for use Lua in Multi-threaded C++ Application?
- From: David Jones <drj@...>
- Date: Wed, 13 Aug 2003 17:20:45 +0000
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