Stream: helpdesk (published)

Topic: Replacing `Vector`s in lowered code


view this post on Zulip Chad Scherrer (Jul 15 2021 at 14:36):

There's a ton of code out there that using Vectors, that might sometimes be better off with something else, say an SVector or StrideArray. This can reduce allocations, and potentially give big speedups. The obvious approach is to open a PR and suggest this change. But this is a slow process, and is especially unlikely to go through for code in Julia Base.

This makes me wonder, would it be possible to tell Julia to change this in the lowered code, maybe using something like IRTools.jl or Cassette.jl? Has anyone explored this sort of thing?

view this post on Zulip Michael Abbott (Jul 15 2021 at 16:30):

Once upon a time there was some discussion here: https://github.com/FluxML/Flux.jl/issues/706


Last updated: Dec 28 2024 at 04:38 UTC