I can bake another patch to use the old heap size and it may help. Anyway, the delay caused by frequent memory allocation is raised in upstream mailing list. Let's see how it will develop.