perf(dom): improve dom cloning speed