improve spm command performance
bump 2.2.11
Merge pull request #947 from afc163/2.x

improve spm command performance for 2.x