Performance

There is no performance penalty associated with advice that is not being checked. When checking advice, there is no loss of performance for predicates that do not have advice associated with them or whose advice is not currently being checked. The cost in space of advice is roughly equivalent to the cost of an asserted fact the size of the add_advice/3 call. The memory cost for checking advice on a predicate is the same as that of putting a spypoint on it.

For details see the reference pages for the predicates listed below.