This page describes the profiling of various Objects in Traceanal implementation.
The reason is that each node(hop) in traceroute is queried separately for its ASN. The execution time can be decreased by maintaining a cache of node ASN information in memory.