[PATCH] D115416: [lld-macho] Prevent writing map files on the critical path
Jez Ng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 8 21:14:36 PST 2021
int3 added a comment.
> Profiling on my end shows that writeMapFile actually takes longer than writeOutputFile and on some cases longer than finalizeLinkEditSegment.
Oh interesting... well we can stick with this order then
> The async policy is preferred, but the system will choose deferred if the system is running out of memory and can't spawn another thread in efforts to not hard crash.
Do you have a source for this? Because that's not what cppreference says...
I agree the lambda isn't necessary.
> If the implementation changes behind the scenes for us
cppreference describes what the standard indicates implementations should do, so this shouldn't be a concern
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115416/new/
https://reviews.llvm.org/D115416
More information about the llvm-commits
mailing list