Closed akarnokd closed 8 years ago
This PR inlines the operator variants for sum, min and max for better performance:
sum
min
max
Plus it fixes a shared-state bug with minMaxBy: in reduce(seed, f) the seed is shared amongs all invocations of the chain.
minMaxBy
reduce(seed, f)
seed
No coverage report found for 1.x at 0d89ec2. Powered by Codecov. Last updated by 0d89ec2...6ceb785
No coverage report found for 1.x at 0d89ec2.
Powered by Codecov. Last updated by 0d89ec2...6ceb785
This PR inlines the operator variants for
sum
,min
andmax
for better performance:Plus it fixes a shared-state bug with
minMaxBy
: inreduce(seed, f)
theseed
is shared amongs all invocations of the chain.