[PATCH] D27991: Optimize objdump -objc-meta-data

Dave Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 3 10:16:36 PST 2017


kastiglione added a comment.

Better answer:

The reason the assertion is so costly is that each iteration (of bind table entries) calls `MachOBindEntry::operator==`, which in turn does a member-wise equality check of the full array of bind opcodes. For a large Mach-O file, this can become time consuming and can be mitigated by a pointer equality check first.


https://reviews.llvm.org/D27991





More information about the llvm-commits mailing list