You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BlockTree has some methods that return chains as vectors. Allocating a vector for a getter is unoptimal, we can just return an iterator (external or internal) instead. C++20 coroutines and C++23 generator are a nice way to implement an external iterator. However, we should be careful about multithreaded access to block tree in this case.
Motivation
Optimization of large chain requests.
Additional context
No response
Are you planning to do it yourself in a pull request ?
Yes
The text was updated successfully, but these errors were encountered:
Description
BlockTree has some methods that return chains as vectors. Allocating a vector for a getter is unoptimal, we can just return an iterator (external or internal) instead. C++20 coroutines and C++23 generator are a nice way to implement an external iterator. However, we should be careful about multithreaded access to block tree in this case.
Motivation
Optimization of large chain requests.
Additional context
No response
Are you planning to do it yourself in a pull request ?
Yes
The text was updated successfully, but these errors were encountered: