# Rebuild a strategy's agent list only when its agents change · dara/icarus

[View on GitCafe](https://git.cafe/dara/icarus/commit/59ea1d484f2be405b7ee56b2af74d8cf315846f9)

Repository: [dara/icarus](https://git.cafe/dara/icarus)

Visibility: public

Requested revision: 59ea1d484f2be405b7ee56b2af74d8cf315846f9

Requested commit: 59ea1d484f2be405b7ee56b2af74d8cf315846f9

Commit: 59ea1d484f2be405b7ee56b2af74d8cf315846f9

Tree: 6f52c5b72164f2197339ed3e41f9f87f57391cdb

Author: Dara Adedeji

Committer: Dara Adedeji

## Message

```
Rebuild a strategy's agent list only when its agents change

applyBatch rebuilt the strategy's agent summary after every accepted agent
element op, reading every agent element of the strategy across all its
pages. Most agent ops are moves, which can't change the summary: on a
20-page strategy one agent drag read 75 KB, against 4.6 KB for any other
element. Compare what the row adds to the summary (agent type and page,
while live) before and after the op, and rebuild only when that changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

```

## Parents

- [1dd1f53f678b8fef7a4c520ea438cd49c96727c0](https://git.cafe/dara/icarus/commit/1dd1f53f678b8fef7a4c520ea438cd49c96727c0?format=markdown)

[Source at this commit](https://git.cafe/dara/icarus/tree/59ea1d484f2be405b7ee56b2af74d8cf315846f9?format=markdown)
