partial fix for #7178 GC overhead limit hit when reindexing large code b...

...ase with 0.12-rc5