JuliaArrays / JuliaArrays/MappedArrays.jl
Pass more array information
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 88
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Description
Some trivial information queries become time-consuming because currently there's no way to pass this extra information. And it just falls back to apply the function again and again and again and becomes very inefficient.
using TestImages, ImageTransformations
img = testimage("cameraman")
As = mappedarray(θ->imrotate(img, θ, axes(img)), -π/4:π/16:π/4);
@btime size.($As); # 22.033 ms (136 allocations: 2.26 MiB)
@btime collect($As); # 22.880 ms (127 allocations: 2.26 MiB)
For this very specific case, axes can be known prior.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the mappedarray API and reproduce the Julia benchmark in the issue, comparing size.($As) with collect($As). Determine how array information could be supplied before mapping; done means the known axes can be reused without repeatedly applying the function for these queries.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100