Skip to content

Replace jemalloc dependency with custom interpose layer #318

@hassila

Description

@hassila

Jemalloc statistics buys us per-thread aggregatable statistics with the downside of one additional requirement.

Should consider rolling our own interposition here (can be a separate product library), which may have slightly more performance impact, but will enable running benchmarks with malloc stats without adding the dependency (and works around problems with macOS xctest/Xcode usage of benchmarks).

We can base it off the work done here by the NIO team:

https://github.com/apple/swift-nio/tree/main/IntegrationTests/allocation-counter-tests-framework

But should expand it with statistics that covers the metrics we already support (e.g. small/large allocs etc).

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions