]> git.ipfire.org Git - thirdparty/squid.git/commit
Improved testAppendSBuf to actually test SBuf::append() optimization.
authorAlex Rousskov <rousskov@measurement-factory.com>
Fri, 4 Nov 2016 22:04:34 +0000 (16:04 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Fri, 4 Nov 2016 22:04:34 +0000 (16:04 -0600)
commit5534a101594a15ebe2ac67ceea7ad56b0e7cf4d4
tree981f75fbfc226ce448413ef278a1cd636a98771e
parentecf0d881cd83551f374d720bb1f8624ad4ed6f24
Improved testAppendSBuf to actually test SBuf::append() optimization.

... rather than to test SBuf::id preservation across assignments
[currently used by that optimization].

Trunk r14911 talks about bitwise object copy but making sure that SBuf
has a working assignment operator is an issue unrelated to append() and
its optimization. Besides, it is not really the prohibited by C++
bitwise copy that we might worry about but the default member-wise
assignment that we may forget to customize.
src/tests/testSBuf.cc