Profiler + memchecks trying to narrow down perf issues.
Buffer looks like the likely candidate. Benchmarks in preperation of tuning.