Preallocate mhash key_tmps vector 21/19521/5
authorDave Barach <dave@barachs.net>
Fri, 10 May 2019 19:25:10 +0000 (15:25 -0400)
committerFlorin Coras <florin.coras@gmail.com>
Tue, 14 May 2019 17:50:35 +0000 (17:50 +0000)
commit2180baccc1428ffbd64a8312f3c983791a0771ab
treedee36722337e21f753c315768d34367531f0af1d
parent5e8e8dcd71c619b098093e124ccde89ba3590e6f
Preallocate mhash key_tmps vector

Fix os_get_nthreads() so that it starts returning the correct answer
as early as possible.

Change-Id: Id5292262f2c3f521b07ffbe6a9f6748dcc4dcb7d
Signed-off-by: Dave Barach <dave@barachs.net>
src/vlib/threads.c
src/vlib/unix/main.c
src/vppinfra/mhash.c