Skip to content
Snippets Groups Projects
Unverified Commit adcb6a60 authored by Michael Droettboom's avatar Michael Droettboom Committed by GitHub
Browse files

gh-92356: Fix regression in ctypes function call overhead (#92357)

38f331d4 introduced a delayed initialization routine to set up
ctypes formattable (`_ctypes_init_fielddesc`), but inadvertently
removed setting the `initialization` flag to 1 to avoid initting
each time.
parent 301351c6
No related branches found
No related tags found
No related merge requests found
Fixed a performance regression in ctypes function calls.
......@@ -1602,6 +1602,7 @@ _ctypes_get_fielddesc(const char *fmt)
struct fielddesc *table = formattable;
if (!initialized) {
initialized = 1;
_ctypes_init_fielddesc();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment