speed up length
Merge branch '21-misc-cleanup' into 22-subset-revision