Skip to content

Optimize Data.Array.Mutable.Unlifted.Linear.map#334

Merged
utdemir merged 2 commits intomasterfrom
ud/optimize-map-on-unlifted-arrays
Jul 8, 2021
Merged

Optimize Data.Array.Mutable.Unlifted.Linear.map#334
utdemir merged 2 commits intomasterfrom
ud/optimize-map-on-unlifted-arrays

Conversation

@utdemir
Copy link
Copy Markdown
Contributor

@utdemir utdemir commented Jun 27, 2021

This PR implements map function in the PR in a simpler way, directly on top of Array#'s. It's as fast as the map function on Data.Vector now.

In order to be able to measure the results, I also split up a benchmark using map and toList to two benchmarks each testing a single function.

Without {-# NOINLINE map #-} our benchmarks improve a bit. However, I'm keeping it as per the discussion around #187 (comment).

Related: #328

@utdemir utdemir requested a review from aspiwack June 27, 2021 22:41
Co-authored-by: Arnaud Spiwack <arnaud.spiwack@tweag.io>
@utdemir utdemir force-pushed the ud/optimize-map-on-unlifted-arrays branch from e4d62f8 to afa7d29 Compare July 7, 2021 22:52
@utdemir utdemir merged commit ead3a75 into master Jul 8, 2021
@utdemir utdemir deleted the ud/optimize-map-on-unlifted-arrays branch July 8, 2021 01:18
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