libqb/include
Chrissie Caulfield 633f2624a7
logging: Remove linker 'magic' and just use statics for logging callsites (#322)
It is my (and several others') opinion that the linker 'magic' used to maintain callsite data in libqb is hugely over complicated and unnecessarily fragile. It's main purpose seems to have been to improve performance but empirical testing shows this to be tiny at best. The overhead of sprintf makes minor optimisations in this code pointless.

With this code removed, libqb allocates callsites using a C static variable at run-time. This sounds bad but in actuality it merely moves the allocation from program load time to the first few milliseconds of program run-time. Applications like corosync and pacemaker spend most of their time in small loops doing the same work over and over again so the overhead doesn't apply and jitter does not occur.

We've tested this with corosync and pacemaker under valgrind and massif and the differences are minimal and even then only show up under artificial stress testing.

For this change I've bumped the soname up to 20 to indicate this is an incompatible change. I'm open to suggestions as to a release number but am currently thinking of 2.0.0
2018-09-27 09:20:06 +01:00
..
qb logging: Remove linker 'magic' and just use statics for logging callsites (#322) 2018-09-27 09:20:06 +01:00
.gitignore Cleanup the .gitignore files 2012-05-09 21:43:58 +10:00
Makefile.am build: include: fix extra trailing newline 2016-03-10 22:44:49 +01:00
os_base.h Fix comment typo (#296) 2018-03-20 13:12:06 +00:00
tlist.h Unify to QB_TRUE/QB_FALSE a boolean value 2013-01-11 02:01:06 +09:00