[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Best way to implement timeouts in LuaJIT
- From: Konstantin Osipov <kostja@...>
- Date: Sun, 29 Apr 2012 21:08:53 +0400
Hello,
I'm looking for the fastest and least intrusive way to implement
timeouts in LuaJIT.
Ideally, I'd be looking for a solution that can be always on,
and have minimal impact on performance.
Ideally, I would keep track of time myself, (with alarm() call or
similar), and just tell lua_State that it should not run any more
instructions.
Is this a solved problem?
--
http://tarantool.org - an efficient, extensible in-memory data store