New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String reversing supporting astral characters and combining unicode chars #627

Closed
wants to merge 12 commits into
base: master
from

Conversation

Projects
None yet
5 participants
@eoftedal

This comment has been minimized.

Show comment
Hide comment
@lukewestby

This comment has been minimized.

Show comment
Hide comment
@lukewestby

lukewestby Aug 20, 2016

Member

@eoftedal what are the performance effects of this change?

Member

lukewestby commented Aug 20, 2016

@eoftedal what are the performance effects of this change?

@et

This comment has been minimized.

Show comment
Hide comment
@et

et Sep 23, 2016

Awesome @eoftedal! Shouldn't there also be a test here?

et commented Sep 23, 2016

Awesome @eoftedal! Shouldn't there also be a test here?

@Pilatch

This comment has been minimized.

Show comment
Hide comment
@Pilatch

Pilatch Dec 15, 2016

If there are performance implications, which I'd bet there are, maybe this could instead become another function.

Pilatch commented Dec 15, 2016

If there are performance implications, which I'd bet there are, maybe this could instead become another function.

@eoftedal

This comment has been minimized.

Show comment
Hide comment
@eoftedal

eoftedal Dec 16, 2016

To be honest, I don't know the performance implications. I also don't know if people use a string reversing function enough that that matters. I can't really think of many valid use cases for it.

eoftedal commented Dec 16, 2016

To be honest, I don't know the performance implications. I also don't know if people use a string reversing function enough that that matters. I can't really think of many valid use cases for it.

@eoftedal

This comment has been minimized.

Show comment
Hide comment
@eoftedal

eoftedal Dec 16, 2016

Array.from(str).length seems to be about 10 times slower than str.length

eoftedal commented Dec 16, 2016

Array.from(str).length seems to be about 10 times slower than str.length

@eoftedal

This comment has been minimized.

Show comment
Hide comment
@eoftedal

eoftedal Dec 16, 2016

[...str].length seems to be about twice as fast as Array.from(str).length

eoftedal commented Dec 16, 2016

[...str].length seems to be about twice as fast as Array.from(str).length

@evancz

This comment has been minimized.

Show comment
Hide comment
@evancz

evancz Mar 25, 2017

Member

Fixed in elm-lang@8ca9c38 with proof that speed is equal or faster here and tests in elm-lang@d796fca.

Member

evancz commented Mar 25, 2017

Fixed in elm-lang@8ca9c38 with proof that speed is equal or faster here and tests in elm-lang@d796fca.

@evancz evancz closed this Mar 25, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment