flowbehappy / tigate

TiGate pulls change logs out of TiDB and pushes to kinds of systems.
11 stars 8 forks source link

eventBroker: add resolvedTsCache to reduce GC overhead #234

Closed asddongmen closed 1 month ago

asddongmen commented 1 month ago

A simple struct was added to cache resolvedTs, reducing the GC overhead of using primitive slices. As shown in the image below, this optimization saves about 1 core CPU when replicating 200k tables on a single node. image