Remove will_cache_on_disk_for_key_fn#154591
Remove will_cache_on_disk_for_key_fn#154591zetanumbers wants to merge 1 commit intorust-lang:mainfrom
will_cache_on_disk_for_key_fn#154591Conversation
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…<try> Remove `will_cache_on_disk_for_key_fn`
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (0f75a34): comparison URL. Overall result: ❌✅ regressions and improvements - please read the text belowBenchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please do so in sufficient writing along with @bors rollup=never Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 4.0%, secondary 2.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 2.0%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 483.836s -> 484.325s (0.10%) |
|
Diff between the two perf runs: https://perf.rust-lang.org/compare.html?start=5a1a969187f4afe604cb916bc5740a09c5062f4b&end=0f75a344ce44035ffe18148c5886f45b63053573&stat=instructions%3Au All of the “significicant” results look like they could be noise, unfortunately. |
Why would you think that? Every |
|
Either way this is also a refactor PR. |
This comment has been minimized.
This comment has been minimized.
9e740ff to
aa17145
Compare
|
r? @jieyouxu rustbot has assigned @jieyouxu. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
I don’t quite understand the motivation behind this as a cleanup. It removes a function pointer from the vtable, but replaces it with two booleans in the vtable, which doesn’t strike me as an improvement over the current code. Is there some reason to prefer the approach in this PR? |
|
r? Zalathar (since you're already looking at it) |
|
|
Pair of bools is smaller than one function pointer. Removes some dynamic dispatch. Less lines of code overall. |
Refactors
QueryVtablesand removeswill_cache_on_disk_for_key_fnas unnecessary indirection.Based and blocked on #154576.
Expecting perf improvements.