The things that strike me are:
1. 39/22 is quite a big gap – 17 teeth is a lot in a single jump. 14 or fewer is generally a lot better. Many are 38/26 this is pretty smooth. So have a think about this before doing it.
2. With such a big difference you may find you need to use a triple front mech as I GUESS the max capacity of the double front mechs are less than 17. Capacity being the difference between big and little.
3. If you are running 10 speed why not get an 11 or 12/36 cassette which will resolve the issues on the front but give a similar range of gears.
4. Rear mechs have two numbers associated with them. One is a Max which relates to the biggest sprocket they can take. The other is capacity which is the total difference in teeth between the biggest and smallest front and back added together. If you are running a 36 cassette and a 12 tooth difference at the front you should be fine with a medium. Triple chainsets with a 36 on the back will need a long cage rear mech.
Shimano front shifters are switchable between double and tripple – not sure about SRAM.
HTH