[ENH] Suggest to improve performance of the analytic shoebox model

Open
#96 0 comments 0 reactions 1 assignee View on GitHub

@mberz is already working on this.

Since Nov 7, 2025.

Assessment

This issue has not been assessed yet.

Description

enhancement
Checklist
Problem

Currently, the implementation of the sound pressure in a shoebox room with rigid walls uses a naive for loop implementation which is not very performant. It would be nice to speed this up.

Solution

I'd suggest to replace the current implementation using a JIT-compiled implementation using numba.
It probably makes sense to do so for parts of pyrato.analytic.rectangular_room_rigid_walls the function instead of the whole function.

Alternatives

No response

Anything else?

Profiling the current code and checking performance increases are highly advisable.

Dominant language
Python
Stars
25
Forks
15
PR merge metrics
No merged PRs in 30d

Getting set up

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.

More from pyfar/pyrato

All issues in pyfar/pyrato

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.