Skip to content

Linking with tcmalloc #3271

Open
Open
@danpovey

Description

@danpovey

This is to propose modifying the build system to link with Google's tcmalloc.
I think it's just a question of adding something like -ltcmalloc_minimal or -ltcmalloc to the link line. I notice that packages for this exist: for example, on Debian, there is the package
libtcmalloc-minimal4
@LvHang found that for decoding, linking in tcmalloc could give of the order of 10% speedup.
I'd rather not make it a mandatory dependency though, as there may be systems where it's not convenient to install. Also I believe it doesn't release memory to the system so in principle there may be situations with long-running jobs, where it could end up being more of a memory hog than regular malloc. But I hope this won't happen too much in practice.

Metadata

Metadata

Assignees

Labels

enhancementin progressIssue has been taken and is being worked onstale-excludeStale bot ignore this issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions