Use Jemalloc (#189)

Jemalloc performs better than the standard allocator in various metrics (http://ithare.com/testing-memory-allocators-ptmalloc2-tcmalloc-hoard-jemalloc-while-trying-to-simulate-real-world-loads/).

This PR makes changes to use Jemalloc as the global allocator for Pgcat. Windows is not officially supported by Pgcat but it should still compile but without Jemalloc as the allocator.
This commit is contained in:
Mostafa Abdelraouf
2022-10-13 11:13:45 -05:00
committed by GitHub
parent 83fd639918
commit eceb7f092e
3 changed files with 38 additions and 0 deletions

View File

@@ -34,3 +34,6 @@ rustls-pemfile = "1"
hyper = { version = "0.14", features = ["full"] }
phf = { version = "0.11.1", features = ["macros"] }
exitcode = "1.1.2"
[target.'cfg(not(target_env = "msvc"))'.dependencies]
jemallocator = "0.3.2"