Ah, I was indeed misunderstanding your proposal. I thought that what was being proposed was Eigen always using a custom allocator… Thank you for the clarification. :-)
@Kaelin:
Like Mark says, I'm merely taking note of the fact that applications do override malloc in practice; in the case of cross-platform applications, they tend to do so on all platforms and can then rely on their custom allocator on all platforms, regardless of the merits of each platform's default allocator. @ Christoph: Thanks for these bug links. They show that the issue is affecting people in practice. I totally agree that my benchmark is only covering one small usage pattern and results may vary a lot based on usage pattern. I just intended it as a sanity check, necessary but not sufficient, and as a basis if someone is concerned about another specific usage pattern and wants to adapt this benchmark to it. Totally agree that if one were very concerned about alloc performance, one should focus on avoiding allocations rather than going for marginal improvements on the allocator. Benoit
|