Previous: , Up: Efficiency Notes   [Contents][Index]


5.13.4 Verbosity Control

These variables control the verbosity of efficiency notes:

Variable: *efficiency-note-cost-threshold*

Before printing some efficiency notes, the compiler compares the value of this variable to the difference in cost between the chosen implementation and the best potential implementation. If the difference is not greater than this limit, then no note is printed. The units are implementation dependent; the initial value suppresses notes about “trivial” inefficiencies. A value of 1 will note any inefficiency.

Variable: *efficiency-note-limit*

When printing some efficiency notes, the compiler reports possible efficient implementations. The initial value of 2 prevents excessively long efficiency notes in the common case where there is no type information, so all implementations are possible.