Planet-Factory / legacy-claude

The CLAuDE model
https://planet-factory.github.io/claude-docs/
MIT License
167 stars 28 forks source link

Use Numba to increase speed of several functions. #16

Closed MennovDijk closed 2 years ago

MennovDijk commented 3 years ago

This change will substantially increase the speed (20x) of several functions that are called each iteration. While this won't affect total code execution by a significant margin, it will at least make those functions that are now decorated by Numba a lot faster. See the example below of speedup for combine_data().

combine_data_njit

The input data used for testing is identical to the input data supplied to the function during the first iteration of the simulation. I did not change any of the parameters for this test.

ATGSilva commented 2 years ago

Stale