Skip to content

Simplify 'seq' for performance#329

Merged
utdemir merged 1 commit intomasterfrom
ud/simpler-seq
Jun 10, 2021
Merged

Simplify 'seq' for performance#329
utdemir merged 1 commit intomasterfrom
ud/simpler-seq

Conversation

@utdemir
Copy link
Copy Markdown
Contributor

@utdemir utdemir commented Jun 10, 2021

This simple change both looks nicer, and also speeds up
one of my (yet unpublished) local benchmarks considerably.

I think calling toLinear is very costly, since the coerce
does not inline and the parameter to it ends up being an allocation.
Surely my terminology here is not quite right, and I would love to
know more about how the coerce is handled on the simplifier and
core prep, so please do correct me.

@utdemir utdemir requested a review from aspiwack June 10, 2021 11:56
Copy link
Copy Markdown
Member

@aspiwack aspiwack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Always happy to remove an Unsafe.toLinear!

@utdemir utdemir merged commit 5317854 into master Jun 10, 2021
@utdemir utdemir deleted the ud/simpler-seq branch June 10, 2021 23:41
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