]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-112919: Speed-up datetime, date and time.replace() (GH-112921)
authorEugene Toder <eltoder@users.noreply.github.com>
Tue, 30 Jan 2024 15:19:46 +0000 (10:19 -0500)
committerGitHub <noreply@github.com>
Tue, 30 Jan 2024 15:19:46 +0000 (15:19 +0000)
commit1f515e8a109204f7399d85b7fd806135166422d9
treea8af50bda79583edcfc0b24306a8a71a49b5609a
parent4287e8608bcabcc5bde851d838d4709db5d69089
gh-112919: Speed-up datetime, date and time.replace() (GH-112921)

Use argument clinic and call new_* functions directly. This speeds up
these functions 6x to 7.5x when calling with keyword arguments.
Include/internal/pycore_global_objects_fini_generated.h
Include/internal/pycore_global_strings.h
Include/internal/pycore_runtime_init_generated.h
Include/internal/pycore_unicodeobject_generated.h
Misc/NEWS.d/next/Library/2023-12-09-23-31-17.gh-issue-112919.S5k9QN.rst [new file with mode: 0644]
Modules/_datetimemodule.c
Modules/clinic/_datetimemodule.c.h