按照楼上的time tree方法测试这个C patch基本没用。但是
(setq process-adaptive-read-buffering nil)
在我的M1 macbook上有4倍提速,虽然还是比terminal慢。