Aurelien DARRAGON 7f418ac7d2 MINOR: hlua_fcn: enforce yield after *_get_stats() methods
{listener,proxy,server}_get_stats() methods are know to be expensive,
expecially if used under an iteration. Indeed, while automatic yield
is performed every X lua instructions (defaults to 10k), computing an
object's stats 10K times in a single cpu loop is not desirable and
could create contention.

In this patch we leverage hlua_yield_asap() at the end of *_get_stats()
methods in order to force the automatic yield to occur ASAP after the
method returns. Hopefully this should help in similar scenarios as the
one described in GH #2903
2025-04-30 17:00:31 +02:00
..
2024-11-18 15:15:54 +01:00
2025-01-07 16:42:38 +01:00
2025-04-29 15:19:32 +02:00
2025-04-30 17:00:27 +02:00
2025-04-29 15:19:32 +02:00
2025-04-30 15:50:10 +02:00
2024-10-04 21:38:14 +02:00