rust icon indicating copy to clipboard operation
rust copied to clipboard

Drop AST on a separate thread and prefetch `hir_crate`

Open Zoxc opened this issue 4 months ago • 2 comments

This drop AST on a separate thread and prefetches hir_crate.

A spawn function is added to the parallel module which spawn some work on the Rayon thread pool.

Zoxc avatar Mar 02 '24 17:03 Zoxc

r? @cjgillot

rustbot has assigned @cjgillot. They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

rustbot avatar Mar 02 '24 17:03 rustbot

Did you measure a perf difference?

I expect it would below my noise threshold. I did verify the behavior with self profiling though.

Zoxc avatar Mar 03 '24 17:03 Zoxc

:umbrella: The latest upstream changes (presumably #123631) made this pull request unmergeable. Please resolve the merge conflicts.

bors avatar Apr 09 '24 12:04 bors