You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Third-party quicktions raises an import error under Python 3.11. The replacement is the fractions module in Python's standard library.
Background. Years ago, the decision was made to replace built-in fractions with third-party quicktions. The near 10x speed increase provided by quicktions seemed important, especially at the time of Josiah's implementation of Abjad's timespan collection logic for Josiah's dissertation. Two things make quicktions no longer necessary. First, over successive releases of Python 3.x, built-in fractions has become increasingly performant: the quicktions pypi page indicates that quicktions may only be 2x faster than built-in fractions under Python 3.10. Second, the significant performance enhancements I added to Abjad in 2022 probably render the original problem moot: I think the original problem wasn't the performance of rational construction but rather calls to Python's (costly) inspect module for object comparison. Those calls to inspect are now all removed from 2022-era versions of Abjad.
The text was updated successfully, but these errors were encountered:
Third-party
quicktions
raises an import error under Python 3.11. The replacement is thefractions
module in Python's standard library.Background. Years ago, the decision was made to replace built-in
fractions
with third-partyquicktions
. The near 10x speed increase provided byquicktions
seemed important, especially at the time of Josiah's implementation of Abjad's timespan collection logic for Josiah's dissertation. Two things makequicktions
no longer necessary. First, over successive releases of Python 3.x, built-infractions
has become increasingly performant: thequicktions
pypi page indicates thatquicktions
may only be 2x faster than built-infractions
under Python 3.10. Second, the significant performance enhancements I added to Abjad in 2022 probably render the original problem moot: I think the original problem wasn't the performance of rational construction but rather calls to Python's (costly)inspect
module for object comparison. Those calls toinspect
are now all removed from 2022-era versions of Abjad.The text was updated successfully, but these errors were encountered: