SciML / SciML/JumpProcesses.jl

Check if wrapping affects to always return nothing has perf impact

Open
#333 0 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

We currently always wrap user affect function to ensure they return nothing, thereby making sure the affect functions all have the same return type. We should see if this has any performance impact, and if so, make a kwarg a user can set to disable this (i.e. by promising they have properly constructed their affect functions to return nothing).

We should also update the docs to always include the nothing return.

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 code that wraps user affect functions and the documentation describing affect return values. Benchmark the current wrapping behavior, determine whether disabling it needs a user-facing kwarg, and update the docs to consistently require or describe a nothing return.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
documentation, 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.