Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

specialize on mapfoldl(::Type, ...) #39019

Merged
merged 1 commit into from
Dec 30, 2020
Merged

specialize on mapfoldl(::Type, ...) #39019

merged 1 commit into from
Dec 30, 2020

Commits on Dec 28, 2020

  1. specialize on mapfoldl(::Type, ...)

    Before:
    ```julia
    julia> using BenchmarkTools
    
    julia> b = rand(Bool, 10000);
    
    julia> @Btime mapfoldl(Int, +, b; init=0)
      1.136 ms (9025 allocations: 141.02 KiB)
    5057
    ```
    
    After:
    ```julia
    julia> @Btime mapfoldl(Int, +, b; init=0)
      1.094 μs (1 allocation: 16 bytes)
    5057
    ```
    simeonschaub committed Dec 28, 2020
    Configuration menu
    Copy the full SHA
    cac07ca View commit details
    Browse the repository at this point in the history