[OpenSIPS-Devel] [OpenSIPS/opensips] 99879a: ratelimit: Minor speed-ups inside critical regions
Liviu Chircu
noreply at github.com
Fri Sep 13 13:36:51 UTC 2024
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: 99879ab98a8dd6a42a65bea59399eef374863461
https://github.com/OpenSIPS/opensips/commit/99879ab98a8dd6a42a65bea59399eef374863461
Author: Liviu Chircu <liviu at opensips.org>
Date: 2024-09-13 (Fri, 13 Sep 2024)
Changed paths:
M modules/ratelimit/ratelimit_helper.c
Log Message:
-----------
ratelimit: Minor speed-ups inside critical regions
* avoid repetitive de-referencing operations by copying pipe address
on the stack, across three different functions
* merge multiple invocations of time() inside critical region
Commit: 377ba7fe295f22d8c7d0ab13c2239b8eab29f3cb
https://github.com/OpenSIPS/opensips/commit/377ba7fe295f22d8c7d0ab13c2239b8eab29f3cb
Author: Liviu Chircu <liviu at opensips.org>
Date: 2024-09-13 (Fri, 13 Sep 2024)
Changed paths:
M modules/ratelimit/ratelimit.h
M modules/ratelimit/ratelimit_helper.c
Log Message:
-----------
ratelimit: Avoid replicating "zero" pipes excessively
This patch makes it so any time a pipe's `.counter` value reaches 0, it
will only get broadcasted to neighbouring cluster nodes exactly 3 more
times, after which it will be completely skipped from being included in
the replication packet. This counter is then reset to 3 as soon as the
pipe's value is incremented locally.
Compare: https://github.com/OpenSIPS/opensips/compare/7022a48985be...377ba7fe295f
To unsubscribe from these emails, change your notification settings at https://github.com/OpenSIPS/opensips/settings/notifications
More information about the Devel
mailing list