samyakbhuta / gtts

Gujarati Text-to-Speech
5 stars 9 forks source link

Preprocessing, lookup and replace might not be the most efficient way. #17

Open samyakbhuta opened 11 years ago

samyakbhuta commented 11 years ago

Have a look at a for loop here at https://github.com/samyakbhuta/gtts/blob/master/project/ss/lang/gu/prepro/PreProcessorImpl.java#L111.

Since, lookup file for preprocessing is relatively small, this loop might not look expensive but as no. of entries in lookup file goes up, we can see it is not the most efficient approach to search and replace.