Skip to content

gh-116946: remove unnecessary gc from _decimal types - #156034

Open
skirpichev wants to merge 1 commit into
python:mainfrom
skirpichev:decimal-nogc/116946
Open

gh-116946: remove unnecessary gc from _decimal types#156034
skirpichev wants to merge 1 commit into
python:mainfrom
skirpichev:decimal-nogc/116946

Conversation

@skirpichev

@skirpichev skirpichev commented Aug 19, 2026

Copy link
Copy Markdown
Member

On my laptop (gcc 14.2, default configure flags) for pyperformance benchmarks (decimal_* should be enabled first, see python/pyperformance#473):

decimal_factorial: Mean +- std dev: [ref] 1.05 sec +- 0.02 sec -> [patch] 918 ms +- 6 ms: 1.14x faster
decimal_pi: Mean +- std dev: [ref] 1.99 sec +- 0.02 sec -> [patch] 1.76 sec +- 0.02 sec: 1.13x faster
telco: Mean +- std dev: [ref] 78.7 ms +- 0.5 ms -> [patch] 73.5 ms +- 0.4 ms: 1.07x faster

Geometric mean: 1.11x faster

@skirpichev

Copy link
Copy Markdown
Member Author

This partially fix speed regression, noticed in #144650.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant