##// END OF EJS Templates
worker: avoid reading 1 byte at a time from the OS pipe...
worker: avoid reading 1 byte at a time from the OS pipe Apparently `pickle.load` does a lot of small reads, many of them literally 1-byte, so it benefits greatly from buffering. This change enables the buffering, at the cost of more complicated interaction with the `selector` API. On one repository with ~400k files this reduces the time by about ~30s, from ~60 to ~30s. The difference is so large because the actual updating work is parallellized, while these small reads are bottlenecking the central hg process.

File last commit:

r48883:3d0a9c6e default
r50794:3eef8baf default
Show More
dirstate_tree.rs
5 lines | 99 B | application/rls-services+xml | RustLexer
pub mod dirstate_map;
pub mod on_disk;
pub mod owning;
pub mod path_with_basename;
pub mod status;