Skip to content

Cypari speedup#12

Merged
MarkCBell merged 11 commits into
MarkCBell:masterfrom
NathanDunfield:cypari_speedup
Jun 19, 2026
Merged

Cypari speedup#12
MarkCBell merged 11 commits into
MarkCBell:masterfrom
NathanDunfield:cypari_speedup

Conversation

@NathanDunfield

@NathanDunfield NathanDunfield commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

This PR provides a major speedup when using the cypari and cypari2 backends. Specifically, it uses PARI to compute polynomial roots rather than sympy, since profiling of flipper computations showed that this was the bottleneck. I also improved caching of BaseRealNumberField.intervals and BaseRealAlgebraic.inverval. The script test/flipper_speed.py runs 60 times faster with this PR on my MacBook Air M2 (15 minutes -> 15 seconds).

@MarkCBell MarkCBell merged commit 9f5b7ba into MarkCBell:master Jun 19, 2026
19 checks passed
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