I faced performance issues in Emacs with many open buffers, especially while switching tabs using `tab-line`. After identifying the bottleneck, I optimized buffer indexing, enhancing performance and contributing to Emacs.
随便写一个测试 mod,包含多个单元测试: mod tests { use std::time::Duration; fn print_my_pid_and_tid() { let pid = std::process::id(); let tid = nix::unistd::gettid(); println!("my pid is {}, tid is {}", pid, tid); } fn hard_job() { std:🧵:sleep(Duration: