A Swift module map for jemalloc
-
Install jemalloc on your machine (e.g.
brew install jemalloc
on macOS, preinstalled on some Linux distributions). -
Add a dependency to your Package.swift
dependencies: [
.package(url: "https://github.com/ordo-one/package-jemalloc", branch: "main")
],
- And finally add the dependency to your target
.executableTarget(
name: "xxx",
dependencies: [
.product(name: "jemalloc", package: "package-jemalloc"),
]
),