From: bors Date: Sat, 3 Mar 2018 21:32:24 +0000 (+0000) Subject: Auto merge of #5112 - Eh2406:cache_queries, r=alexcrichton X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~2^2~64 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=adadfab5dd91917f404af566c6622e65576a2b3d;p=cargo.git Auto merge of #5112 - Eh2406:cache_queries, r=alexcrichton Cache the query result. Small performance gain. In a test on https://github.com/rust-lang/cargo/issues/4810#issuecomment-357553286 Before we got to 1700000 ticks in ~97 sec After we got to 1700000 ticks in ~92 sec. I just reran and got ~82, so it seems to be unstable. And query disappears from the flame graph --- adadfab5dd91917f404af566c6622e65576a2b3d