enough_mail
enough_mail copied to clipboard
Improve runes access
Throughout the code runes are accessed. For some reason iterating through runes seems to be really slow, compare #115 in which this was fixed for one case.
Hey! :-)
Just for your information Runes just extends Iterable<int> and iterable class has lot of functions like commented like this:
They even write comment about being slow.
Usually it's ok to make List.from(runes)and it's good, iteration only one time.
Although I don't know why exactly they haven't used list class in the core.