SciML / SciML/JumpProcesses.jl

Optimization Ideas

Open
#186 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
150
Forks
41
Avg merge
1d 9h
Merged PRs (30d)
28

Description

Just like there is a list of SSAs to consider implementing (https://github.com/SciML/DiffEqJump.jl/issues/32), there are some optimizations of the existing SSAs to consider implementing. This issue will be the place to write them down so as not to forget. The possible optimizations so far are:

  1. Using 32-bit Floats in RSSA bracketing instead of 64-bit floats. The precision for brackets does not matter much, and using less memory will result in better performance.
  2. Using the macro @simd in the loop where propensities are being re-evaluated after executing a reaction.

Other optimization ideas are welcome.

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 locating the RSSA bracketing implementation and the loop where propensities are re-evaluated after a reaction. Investigate the proposed 32-bit bracketing values and @simd optimization, then determine whether either change preserves existing behavior while improving performance. Done means implementing a specific optimization with evidence that the simulation behavior remains correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
performance
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.