util: remove dynamic sort vector growth 71/174871/2 accepted/tizen/unified/20180405.064256 submit/tizen/20180404.150538
authorMichal Bloch <m.bloch@samsung.com>
Wed, 4 Apr 2018 13:04:32 +0000 (15:04 +0200)
committerMichal Bloch <m.bloch@samsung.com>
Wed, 4 Apr 2018 13:29:14 +0000 (15:29 +0200)
commit69c93082d5351c5f92ea7cb44349040a5f9b758d
treec3499bd3649554a2402d481cbf8c4ddd43e6ece9
parent1137676f91123e4edadaebf2a806a5d05948b05e
util: remove dynamic sort vector growth

This reverts f9b568e5484d85d373033b2bf6857ef39cfc5c39.

Dynamic growth was originally implemented to help improve sorting quality.
However, it removes the bound on memory usage and was discovered to cause
starvation in case of a constant flow of logs. The need for very large
vectors has also recently been reduced with the implementation of sorting
in the daemon (cf. commit e937e788bfcf4d4e791dac47099f998c778dd4fc,
"logger: inserting logs in ordered way to the buffers").

Change-Id: I6d0c89531ea7aca28b9062a4054b9975e25f0d36
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
src/logutil/logutil_doc.h
src/logutil/sort_vector.c