SIGN IN SIGN UP

WIP: Improve performance of Wrap Map (#16761)

We've ran into performance issues when reinserting new blocks into the
assistant panel; in profiles WrapMap showed up, as we try to query wrap
boundaries over and over, which is a hidden O(n^2) - for each block, we
may potentially look at all of the Wraps. This PR alleviates this issue
by storing away previously resolved wrap range; consecutive iterations
can often reuse it.
This should help with performance of Assistant Panel with long
conversations.

Release Notes:

- Improved performance of assistant panel with large # of text.
P
Piotr Osiewicz committed
783cccf95d3f9175a298eb604e97b378da1bedce
Parent: 30a677e
Committed by GitHub <noreply@github.com> on 8/23/2024, 4:59:30 PM