Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-90815: Add mimalloc memory allocator #109914

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix header locations on Windows
Fix header locations in c-analyzer
Fix smelly trailing white space

Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:
  • Loading branch information
DinoV committed Oct 12, 2023
commit 82305dc2709561e9f85396e65f5e1889877df840
12 changes: 6 additions & 6 deletions 12 PCbuild/pythoncore.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -302,12 +302,12 @@
<ClInclude Include="..\Include\marshal.h" />
<ClInclude Include="..\Include\memoryobject.h" />
<ClInclude Include="..\Include\methodobject.h" />
<ClInclude Include="..\Include\mimalloc\mimalloc\atomic.h" />
<ClInclude Include="..\Include\mimalloc\mimalloc\internal.h" />
<ClInclude Include="..\Include\mimalloc\mimalloc\prim.h" />
<ClInclude Include="..\Include\mimalloc\mimalloc\track.h" />
<ClInclude Include="..\Include\mimalloc\mimalloc\types.h" />
<ClInclude Include="..\Include\mimalloc\mimalloc.h" />
<ClInclude Include="..\Include\internal\mimalloc\mimalloc\atomic.h" />
<ClInclude Include="..\Include\internal\mimalloc\mimalloc\internal.h" />
<ClInclude Include="..\Include\internal\mimalloc\mimalloc\prim.h" />
<ClInclude Include="..\Include\internal\mimalloc\mimalloc\track.h" />
<ClInclude Include="..\Include\internal\mimalloc\mimalloc\types.h" />
<ClInclude Include="..\Include\internal\mimalloc\mimalloc.h" />
<ClInclude Include="..\Include\modsupport.h" />
<ClInclude Include="..\Include\moduleobject.h" />
<ClInclude Include="..\Include\object.h" />
Expand Down
14 changes: 7 additions & 7 deletions 14 PCbuild/pythoncore.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Filter Include="Include">
<UniqueIdentifier>{086b0afb-270c-4603-a02a-63d46f0b2b92}</UniqueIdentifier>
</Filter>
<Filter Include="Include\mimalloc">
<Filter Include="Include\internal\mimalloc">
<UniqueIdentifier>{1dc8d8bd-d493-478e-9b7a-7eb108bb8bd5}</UniqueIdentifier>
</Filter>
<Filter Include="Modules">
Expand Down Expand Up @@ -795,22 +795,22 @@
<ClInclude Include="..\Include\internal\pycore_uops.h">
<Filter>Include\internal</Filter>
</ClInclude>
<ClInclude Include="..\Include\mimalloc\mimalloc.h">
<ClInclude Include="..\Include\internal\mimalloc\mimalloc.h">
<Filter>Include\mimalloc</Filter>
</ClInclude>
<ClInclude Include="..\Include\mimalloc\mimalloc\atomic.h">
<ClInclude Include="..\Include\internal\mimalloc\mimalloc\atomic.h">
<Filter>Include\mimalloc</Filter>
</ClInclude>
<ClInclude Include="..\Include\mimalloc\mimalloc\internal.h">
<ClInclude Include="..\Include\internal\mimalloc\mimalloc\internal.h">
<Filter>Include\mimalloc</Filter>
</ClInclude>
<ClInclude Include="..\Include\mimalloc\mimalloc\prim.h">
<ClInclude Include="..\Include\internal\mimalloc\mimalloc\prim.h">
<Filter>Include\mimalloc</Filter>
</ClInclude>
<ClInclude Include="..\Include\mimalloc\mimalloc\track.h">
<ClInclude Include="..\Include\internal\mimalloc\mimalloc\track.h">
<Filter>Include\mimalloc</Filter>
</ClInclude>
<ClInclude Include="..\Include\mimalloc\mimalloc\types.h">
<ClInclude Include="..\Include\internal\mimalloc\mimalloc\types.h">
<Filter>Include\mimalloc</Filter>
</ClInclude>
<ClInclude Include="$(zlibDir)\crc32.h">
Expand Down
4 changes: 2 additions & 2 deletions 4 Tools/build/smelly.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ def get_smelly_symbols(stdout, dynamic=False):
symbol = parts[-1]
result = '%s (type: %s)' % (symbol, symtype)

if (symbol.startswith(ALLOWED_PREFIXES) or
symbol in EXCEPTIONS or
if (symbol.startswith(ALLOWED_PREFIXES) or
symbol in EXCEPTIONS or
(not dynamic and symbol.startswith(ALLOWED_STATIC_PREFIXES))):
python_symbols.append(result)
continue
Expand Down
2 changes: 1 addition & 1 deletion 2 Tools/c-analyzer/cpython/_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# Technically, this is covered by "Include/*.h":
#'Include/cpython/*.h',
'Include/internal/*.h',
'Include/mimalloc/**/*.h',
'Include/internal/mimalloc/**/*.h',
'Modules/**/*.h',
'Modules/**/*.c',
'Objects/**/*.h',
Expand Down
6 changes: 3 additions & 3 deletions 6 Tools/c-analyzer/cpython/_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ def clean_lines(text):

# mimalloc
Objects/mimalloc/*.c
Include/mimalloc/*.h
Include/mimalloc/mimalloc/*.h
Include/internal/mimalloc/*.h
Include/internal/mimalloc/mimalloc/*.h

# @end=conf@
''')
Expand All @@ -114,7 +114,7 @@ def clean_lines(text):
* .
* ./Include
* ./Include/internal
* ./Include/mimalloc
* ./Include/internal/mimalloc

Modules/_decimal/**/*.c Modules/_decimal/libmpdec
Modules/_elementtree.c Modules/expat
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.