From 7e1ca916f4db2a32494d3c137a112e222d6f93a9 Mon Sep 17 00:00:00 2001 From: "codeflash-ai[bot]" <148906541+codeflash-ai[bot]@users.noreply.github.com> Date: Fri, 7 Nov 2025 08:40:09 +0000 Subject: [PATCH] Optimize BCDataStream.write_int64 The optimization achieves a **16% speedup** by **eliminating a function call overhead** in the hot path. The key change is **inlining the `_write_num` logic directly into `write_int64`** instead of delegating through a method call. **What changed:** - The original `write_int64` called `self._write_num('