it depends if post type identification processing needs a pointer on A or not.
cheking typeid will surely be faster (since they're compiler generated constant identifiers) but won't provide any A instance to manipulate so will oblige you to perform a dynamic_cast to get a A instance.