cf55806257
The selection is also used to avoid unnecessary work, but only to the file level. Further restricting unnecessary work is left for later.