improve peformance of composite encoding/decoding
more performance tweaks
Merge branch 'master' of github.com:mpenet/casyn