Skip to content

Migrate core.py to numpy arrays for performance - #514

Open
lnzeta wants to merge 1 commit into
pmorissette:masterfrom
lnzeta:master
Open

Migrate core.py to numpy arrays for performance#514
lnzeta wants to merge 1 commit into
pmorissette:masterfrom
lnzeta:master

Conversation

@lnzeta

@lnzeta lnzeta commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

I noticed a significant performance regression updating from 1.1.2.
After some analysis I think it is due to having to use iloc in core.py after the pandas upgrade.
I therefore switched to using mostly numpy internally, and it seems the performance is comparable to pre-upgrade.

I also updated the project to use only pyproject.toml and uv for convenience of setting up a local test env. All github actions and makefile are updated accordingly.

@timkpaine timkpaine left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be split, and we will use hatchling

@lnzeta

lnzeta commented Apr 27, 2026

Copy link
Copy Markdown
Contributor Author

Changed config to use hatchling

@timkpaine timkpaine changed the title Migrate to pyproject.toml and core.py to numpy arrays for performance Migrate core.py to numpy arrays for performance Apr 29, 2026
@timkpaine
timkpaine self-requested a review April 29, 2026 22:42

@timkpaine timkpaine left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to add some benchmarks first so we can properly track performance over time.

@timkpaine

Copy link
Copy Markdown
Collaborator
Screenshot 2026-08-06 at 2 10 16 PM

will take a look if this can be improved.

@timkpaine timkpaine mentioned this pull request Aug 6, 2026
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

Successfully merging this pull request may close these issues.

2 participants