perf(analytics): per-event HTTP flush causes excessive network requests — add batching #68
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
analytics_plugin.rsfires an HTTP request for every individual analytics event. During active gameplay, this can mean dozens of requests per minute (move made, card flipped, hint used, etc.), creating:Affected file
solitaire_engine/src/analytics_plugin.rsFix
Buffer events in a
Vec<AnalyticsEvent>resource and flush in batches: