ITADN

perf(driver): `CancelRegistry` is slow

#851ClosedGeorge-Miao 创建于 2026-04-09
package: driverperformance
G
George-Miaocommented
Each time an op is removed from the map, it calculates the hash of the pointer and check if it presents. This is the absolute hot path and hashing is taking a lot of time. We may want to consider a different approach for cancel token (maybe a flag in the `RawOp` or add weak reference support to `ThinCell`).
关闭于 2026-04-14 0 条评论