enough_mail icon indicating copy to clipboard operation
enough_mail copied to clipboard

Improve runes access

Open robert-virkus opened this issue 4 years ago • 1 comments

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.

robert-virkus avatar Feb 18 '21 10:02 robert-virkus

Hey! :-)

Just for your information Runes just extends Iterable<int> and iterable class has lot of functions like commented like this: image 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.

KevinBLT avatar Feb 19 '21 08:02 KevinBLT