Optimize SimpleFunctionMap
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 23
- Forks
- 13
- Avg merge
- 5h 16m
- Merged PRs (30d)
- 9
Description
Is your feature request related to a problem? Please describe.
Running a small function map example using SimpleFunctionMap is slower than a hand-coded loop by a reasonable margin.
Full examples:
- https://github.com/epirecipes/sir-julia/blob/master/markdown/function_map/function_map.md
- https://github.com/epirecipes/sir-julia/blob/master/markdown/function_map_vanilla/function_map_vanilla.md
Describe the solution you’d like
Options - perhaps at the cost of fewer safeguards - to improve the speed of the SimpleFunctionMap.
Describe alternatives you’ve considered
I haven't done an in-depth profile, but it seems like pre-allocating output for this example (as in my code) may help.
Contributor guide
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 by reproducing the examples in markdown/function_map/function_map.md and markdown/function_map_vanilla/function_map_vanilla.md, then profile the SimpleFunctionMap path against the hand-coded loop. Inspect the implementation and the proposed pre-allocation approach before deciding on an optimization. Done means a measured speed improvement for the example while preserving the existing safeguards.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- performance
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100