Skip to content
Permalink
Browse files

bpo-37543: optimize pymalloc (#14674)

PyObject_Malloc() and PyObject_Free() inlines pymalloc_alloc and
pymalloc_free partially.
But when PGO is not used, compiler don't know where is the hot part
in pymalloc_alloc and pymalloc_free.
  • Loading branch information
methane committed Jul 17, 2019
1 parent 7036e1d commit fb26504d14a08fcd61bb92bb989b6d2b12188535
Showing with 227 additions and 218 deletions.
  1. +1 −0 Misc/NEWS.d/next/Core and Builtins/2019-07-10-20-33-53.bpo-37543.EvI19D.rst
  2. +226 −218 Objects/obmalloc.c
@@ -0,0 +1 @@
Optimized pymalloc for non PGO build.

0 comments on commit fb26504

Please sign in to comment.
You can’t perform that action at this time.