EmbarkStudios / cervo

Utility wrappers for tract
Apache License 2.0
40 stars 1 forks source link

Add batcher API #25

Closed tgolsson closed 2 years ago

tgolsson commented 2 years ago

Description of Changes

This adds a batcher API to help with async/multi-frame flows. The batcher can gather data from one or more sets of agents; and delay actual execution until a later point. This helps achieve larger batch sizes, which leads to better amortized performance as small batches degenerate into Matrix-Vector multiplications.

More details in the changelog file; which is a good starting point for review.

Graph for performance. Orange = new. Lower = better.

image

Fixes #24, #8