Kernel: Use vector<array<Module*>> instead of flat array
authorBen Gamari <bgamari.foss@gmail.com>
Tue, 22 Jan 2013 04:39:44 +0000 (23:39 -0500)
committerBen Gamari <bgamari.foss@gmail.com>
Wed, 23 Jan 2013 05:15:45 +0000 (00:15 -0500)
commit44912e95c029f317d02129d718e2e3bda9cfcd91
treea62984c6ffa2c4760d9c697fcfedd5ef7800dc15
parent9cf29708381362b9a1ad888211eee3d819e5dc6e
Kernel: Use vector<array<Module*>> instead of flat array

As it turns out ON_CONFIG_RELOAD filled the previous array size of 32
entries. Using vector<array<...>> here does incur a memory indirection,
which Arthur rightly points out will have a performance penalty in a hot
path. That being said, we'll use this for now. Eventually it might make
sense to move to array<array<...>> with a sufficiently large size.
src/libs/Kernel.cpp
src/libs/Kernel.h