Skip to content
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

support loading libtcmalloc_minimal.dll for windows #16594

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

wkpark
Copy link
Contributor

@wkpark wkpark commented Oct 26, 2024

Description

The effectiveness of tcmalloc has been discussed in several other threads.
For Windows, LD_PRELOAD is not available, but the tcmalloc_minimal module supported by gperftool can be compiled with patch type to use with Windows and perform hot patching already loaded modules.

How to compile/install tcmalloc_minimal

  • git checkout https://github.com/gperftools/gperftools/
  • install visual c++ 2022 + open cmd.exe and cd go_to_gperfoools
  • cd gperftools\vsprojects\libtcmalloc_minimal
  • msbuild /property:Configuration=Release-Patch
  • copy x64\Release-Patch\libtcmalloc_minimal.dll to the top dir of webui

Notes

  • some extensions will not work as expected with strange error msg. (e.g. Adetailer)

Checklist:

@wkpark wkpark marked this pull request as draft October 26, 2024 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant