Skip to content

Reuse the array returned by match#89

Merged
paf31 merged 1 commit intopurescript:masterfrom
fehrenbach:patch-1
Nov 19, 2017
Merged

Reuse the array returned by match#89
paf31 merged 1 commit intopurescript:masterfrom
fehrenbach:patch-1

Conversation

@fehrenbach
Copy link
Copy Markdown
Contributor

Instead of basically making a copy and letting the original go out of scope immediately after.

This makes a surprisingly large performance difference in Chrome, not so much in Firefox.

Instead of basically making a copy and letting the original go out of scope immediately after.

This makes a surprisingly large performance difference in Chrome, not so much in Firefox.
@paf31 paf31 merged commit 022f932 into purescript:master Nov 19, 2017
@paf31
Copy link
Copy Markdown
Contributor

paf31 commented Nov 19, 2017

This certainly seems safe to me, thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants