Thanks! This is significantly faster (and also easier to read in my opinion) when ran on a real dataset:
Execution Time (Original): 293 seconds
Execution Time (New): 53 seconds
5.52x speed improvement.
Would you be able to explain why this approach is much faster (or how the old one was so slow)?
In reply to Re^2: Weighted frequency of characters in an array of strings
by K_Edw
in thread Weighted frequency of characters in an array of strings
by K_Edw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |