[LLVMdev] isa and friends as an alternative to dynamic cast?

Evan Jones ejones at uwaterloo.ca
Thu Apr 21 19:47:10 PDT 2005


On Thu, 2005-21-04 at 19:43 -0700, Reid Spencer wrote:
> In case it wasn't obvious from Misha's answer, the main reason for
> doing this is speed. RTTI is not very quick.

Right. This is why I was somewhat suprized to see the "isa" facilities
included in LLVM without also disabling rtti. It will reduce the memory
footprint a fair bit if you do disable it, at least based on my
experience with other C++ projects.

Evan Jones





More information about the llvm-dev mailing list