When using c++ template, and especially tuples, I often get very long mangled names like
_ZN11__sanitizer13InternalAllocEmPNS_28SizeClassAllocatorLocalCacheINS_20SizeClassAllocator32ILm0ELy140737488355328ELm0ENS_12SizeClassMapILm3ELm4ELm8ELm17ELm64ELm14EEELm20ENS_15TwoLevelByteMapILy32768ELy4096ENS_20NoOpMapUnmapCallbackEEES5_EEEEm
This is obviously fine in nominal case, and ease debugging but, when I use large tuples of custom types (with large namespaces) this ends up with very huge binaries just because of mangled names; Some tools (like valgrind) even have a symbol name maximum length that make analysis almost impossible.
I was wondering if there is a way to ask g++/clang++ to use a custom mangling function (say md5) so that the very long symbol becomes 5c66b1073e1b453900bd7d32cb79fc0e
which is way shorter.