Speed-up of compose function

I had some trouble with large compositions (>100.000 columns), and managed to reduce it by around 50% by providing the column2id argument in the compose function. Very appreciated!