Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

speedup ideas #196

Open
1fish2 opened this issue May 22, 2023 · 0 comments
Open

speedup ideas #196

1fish2 opened this issue May 22, 2023 · 0 comments

Comments

@1fish2
Copy link
Contributor

1fish2 commented May 22, 2023

In addition to measure-and-tune experiments:

  • MongoDB time series.
  • For messages, measure the performance of dict vs. namedtuple vs. Python objects with slots.
    • (TypedDict instances are dict instances so they wouldn't change the runtime performance but they would improve mypy type checking and IDE code editing.)
  • Cythonize some inner loops.
  • Process-specific simulation time steps.
  • Mongita is an in-process library like sqlite for MongoDB. This eliminates the interprocess communication and the installation and startup work, esp. good for unit tests. Is one CPU process enough for simulation testing and debugging? Mongita's performance metrics don't look compelling.

I updated wcEcoli and stochastic-arrow to Python 3.11 and new library releases. There was a big optimization effort in Python 3.11 but it hardly mattered for wcEcoli! I guess most of the computation is happening in Numpy, Cython code, and Numba-compiled code.

Numpy should soon be able to use the 64-bit version of Apple's Accelerate (BLAS) library for major speedup, esp. on Apple Silicon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant