I noticed the regexps introduced in my last PR (#63) to find channel names in feature strings were pretty slow. In this commit the regexp are compiled once per combination instead. In a quick test with 21 channels and about 2000 features, the overall time taken by the re module went from 14 s to ~3.5 s.
I noticed the regexps introduced in my last PR (#63) to find channel names in feature strings were pretty slow. In this commit the regexp are compiled once per combination instead. In a quick test with 21 channels and about 2000 features, the overall time taken by the
re
module went from 14 s to ~3.5 s.