Skip to content

Commit

Permalink
perf: reduce the memory footprint of REST collector (#3303)
Browse files Browse the repository at this point in the history
* perf: reduce the memory footprint of REST collector

When the REST collector walks pagination links, it does so recursively. Each of these recursive calls retains the previous REST response on the stack, and when there are many recursive calls, a lot of memory can be used. Replace the recursive calls with iterative ones.

* perf: reduce the memory footprint of REST collector

When the REST collector walks pagination links, it does so recursively. Each of these recursive calls retains the previous REST response on the stack, and when there are many recursive calls, a lot of memory can be used. Replace the recursive calls with iterative ones.
  • Loading branch information
cgrinds authored Nov 19, 2024
1 parent d6443e0 commit ef244dc
Showing 1 changed file with 172 additions and 162 deletions.
Loading

0 comments on commit ef244dc

Please sign in to comment.