tardis icon indicating copy to clipboard operation
tardis copied to clipboard

Benchmarking and Performance Improvement: objective 2 memory profiler

Open haleelsada opened this issue 11 months ago • 1 comments

:pencil: Description

Type: :🌞 GSoC

PR on second objective Create a memory usage profile of idea TARDIS Benchmarking and Performance Improvement GSOC'24.

memray

Observation: montecarlo_main_loop and various imports consume most of the memory. few suggestions that can be followed to reduce this:

  • Examine imports and change high memory consuming imports.
  • In montecarlo_main_loop replace lists with numpy arrays.
  • There are lots of copying happening inside the function. minimize those copies.
  • Optimize loop to minimize unnecessary operations.
  • Try to change data structures to use minimum memory overhead.

:pushpin: Resources

memray

:vertical_traffic_light: Testing

How did you test these changes?

  • [ ] Testing pipeline
  • [ ] Other method (describe)
  • [x] My changes can't be tested (explain why)

:ballot_box_with_check: Checklist

  • [ ] I requested two reviewers for this pull request
  • [ ] I updated the documentation according to my changes
  • [ ] I built the documentation by applying the build_docs label

Note: If you are not allowed to perform any of these actions, ping (@) a contributor.

haleelsada avatar Mar 15 '24 22:03 haleelsada

*beep* *bop*

Hi, human.

I'm the @tardis-bot and couldn't find your records in my database. I think we don't know each other, or you changed your credentials recently.

Please add your name and email to .mailmap in your current branch and push the changes to this pull request.

In case you need to map an existing alias, follow this example.

tardis-bot avatar Mar 15 '24 22:03 tardis-bot