You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but still is still a little slower than the version with iterators, it won't error if the collection is empty, and it requires us to give the right type of init argument.
I think due to the Drop and Filter, we encounter some type instability if we try to use generic initial values:
Things like
first
are currently quite slow with the current way Transducers.jl handles iteration of complex eductions. Here's an example from Zulip:vs
One way around this is to use
foldl(right, xs |> Take(1), init=0)
,but still is still a little slower than the version with iterators, it won't error if the collection is empty, and it requires us to give the right type of
init
argument.I think due to the
Drop
andFilter
, we encounter some type instability if we try to use generic initial values:The text was updated successfully, but these errors were encountered: