PyEllips / pyElli

An open source ellipsometry analysis tool for reproducible and comprehensible building of optical models.
https://pyelli.readthedocs.io
GNU General Public License v3.0
17 stars 6 forks source link

Formula dispersions are slow #132

Closed domna closed 1 year ago

domna commented 1 year ago

Problem: The formula based dispersions are extremely slow compared to the predefined model (1.2 it/s compared to 200 it/s for the Solver2x2 and 1 it/s compared to 6 it/s for Solver4x4expm).

Solution: This is likely due to the fact that I re-parse the formula all the time. There are several ways to tackle this, which eventually could all be incorporated:

domna commented 1 year ago

I'm testing building a distinct package with a rust-based formula dispersion here

The idea is to first leave this as a separate package and add it via an option in pyElli (or if it works well replace the formula dispersion entirely).