# sum_tree: Implement find functions iteratively \(\#47013\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/1f97c0e10c5602047f7583526bc1f1ced74925a3)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 1f97c0e10c5602047f7583526bc1f1ced74925a3

Requested commit: 1f97c0e10c5602047f7583526bc1f1ced74925a3

Commit: 1f97c0e10c5602047f7583526bc1f1ced74925a3

Tree: 8239a28eeb614e24a2af54623e02c7398d1e2970

Author: Lukas Wirth

Committer: GitHub

## Message

```
sum_tree: Implement find functions iteratively (#47013)

Recursion here is unnecessary as we do not make use of the stack frames,
so iterating is even cheaper as we do not need to do any stack
bookkeeping either way.

Release Notes:

- N/A *or* Added/Fixed/Improved ...
```

## Parents

- [d1e4ef09eece526982f363e3caddd15bf66c0036](https://git.cafe/gitcafe/zed/commit/d1e4ef09eece526982f363e3caddd15bf66c0036?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/1f97c0e10c5602047f7583526bc1f1ced74925a3?format=markdown)
