Loading page…
A monitoring buffer doubles when full and copies every alert, so one append can stall. The lesson counts the whole run: a doubling buffer copied 15 items in 10 pushes, 1,023 in 1,000 and 1,048,575 in 1,000,000, fewer than two copies per push, while growing by a fixed ten slots copied 49,600 in 1,000 pushes. A binary counter flipped 1,994 bits in 1,000 increments. It states the aggregate method and the accounting method correctly, and shows what amortised cost does not promise: one slow push still copies half of everything.
Your monitoring system appends alerts to a buffer, one at a time.