This come up in discussion with @tomek, another place where we can speed things up.
Details
Details
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
With these changes, I noticed a big improvement in how long the sync takes. In my test case, these changes alone reduced the duration from 23.5s to 14s. Additionally, these make batch processing a lot more efficient - with batch size = 20 the processing time dropped to 6s. (This test case was to sync 39 Farcaster threads with a limit of 20 messages per thread.)
Comment Actions
Nice, the handle_websocket_farcaster_request_static() refactor could probably be handled in a more idiomatic way, but this is okay too