We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Zip()
Zip(x, y) allocates a lot in a simple use case (foo). Zip(x) with a single argument seems ok. System: julia 1.9.3, Transducers v0.4.78, Ubuntu
Zip(x, y)
foo
Zip(x)
julia> using Transducers, BenchmarkTools julia> foo(vals) = vals |> Zip(Map(identity), Map(identity)) |> collect foo (generic function with 1 method) julia> vals = collect(1:10_000); julia> @btime foo($vals); # Zip(x, y) 6.014 ms (150060 allocations: 5.22 MiB) julia> foo1(vals) = vals |> Zip(Map(identity)) |> collect foo1 (generic function with 1 method) julia> @btime foo1($vals); # Zip(x) 205.577 μs (17 allocations: 326.78 KiB)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Zip(x, y)
allocates a lot in a simple use case (foo
).Zip(x)
with a single argument seems ok.System: julia 1.9.3, Transducers v0.4.78, Ubuntu
The text was updated successfully, but these errors were encountered: