SciML / SciML/SimpleDiffEq.jl

Optimize SimpleFunctionMap

Open
#83 0 comments 0 reactions 0 assignees View on GitHub

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:

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.