optimize flattening in resp to not create as many intermediate data structures
optimize flattening in resp to not create as many intermediate data structures

ctrlaltdel121/radix,trigrass2/radix,fzzy/radix,beni55/radix