faster ``_choose_factor``
Merge pull request #2620 from pernici/mp4

faster ``_choose_factor``