overlap DM generation with code chunk transfer