Skip to content

Conversation

joshuay03
Copy link
Contributor

Implements https://bugs.ruby-lang.org/issues/19787

Benchmarks

Enumerable

./build/ruby: ruby 3.4.0dev (2024-03-16T01:29:18Z feature/#uniq_map 3580e39ed3) [arm64-darwin23]
warming up..
# Iteration per second (i/s)

|                    |./build/ruby|
|:-------------------|-----------:|
|e.map { ... }.uniq  |    145.732k|
|e.uniq_map { ... }  |    190.970k|

Array

./build/ruby: ruby 3.4.0dev (2024-03-16T01:29:18Z feature/#uniq_map 3580e39ed3) [arm64-darwin23]
warming up....
# Iteration per second (i/s)

|                      |./build/ruby|
|:---------------------|-----------:|
|a.map { ... }.uniq    |    202.570k|
|a.uniq_map { ... }    |    242.139k|
|a.map! { ... }.uniq!  |    110.230k|
|a.uniq_map! { ... }   |    111.476k|

…p`, `Array#uniq_map` and `Array#uniq_map!`
@joshuay03 joshuay03 closed this Mar 15, 2025
@joshuay03 joshuay03 moved this from On Hold to Noped in Open Source Mar 15, 2025
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.

1 participant