Auto merge of #5112 - Eh2406:cache_queries, r=alexcrichton
authorbors <bors@rust-lang.org>
Sat, 3 Mar 2018 21:32:24 +0000 (21:32 +0000)
committerbors <bors@rust-lang.org>
Sat, 3 Mar 2018 21:32:24 +0000 (21:32 +0000)
commitadadfab5dd91917f404af566c6622e65576a2b3d
tree2e545212c64548ff26f05d832ff92f2696440b6e
parent4429f4efa12dc62985d971fa3ea16e50f541e35a
parentcb0df8e399d30c4129d454912ffb3e119061b295
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