- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
          Move more code to RawVec::finish_grow
          #147124
        
          New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This move a branch and more code into the cold method `finish_grow`, which means that less code is inlined at each `try_reserve` site. Additionally, this reduces the amount of parameters, so they can all be passed by registers.
| rustbot has assigned @Mark-Simulacrum. Use  | 
| @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.
Move more code to `RawVec::finish_grow`
      
        
              This comment has been minimized.
        
        
      
    
  This comment has been minimized.
| Finished benchmarking commit (006e85f): 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 0.1%)A less reliable metric. May be of interest, but not used to determine the overall result above. 
 CyclesResults (primary 2.4%, secondary -3.0%)A less reliable metric. May be of interest, but not used to determine the overall result above. 
 Binary sizeResults (primary -0.3%, secondary -0.2%)A less reliable metric. May be of interest, but not used to determine the overall result above. 
 Bootstrap: 469.714s -> 468.998s (-0.15%) | 
| Seems like this is a small binary size win at the cost of a few instruction count/cycle regressions, but very small ones (including when looking at the aggregate across all our benchmarks). @bors r+ | 
| ☀️ Test successful - checks-actions | 
| What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing 360a3a4 (parent) -> be0ade2 (this PR) Test differencesNo test diffs found Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
    test-dashboard be0ade2b602bdfe37a3cc259fcc79e8624dcba94 --output-dir test-dashboardAnd then open  Job duration changes
 How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance | 
| Finished benchmarking commit (be0ade2): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy. 
 Max RSS (memory usage)Results (secondary -1.0%)A less reliable metric. May be of interest, but not used to determine the overall result above. 
 CyclesResults (primary -2.2%, secondary 0.8%)A less reliable metric. May be of interest, but not used to determine the overall result above. 
 Binary sizeResults (primary -0.3%, secondary -0.2%)A less reliable metric. May be of interest, but not used to determine the overall result above. 
 Bootstrap: 473.775s -> 472.888s (-0.19%) | 
This move a branch and more code into the cold method
finish_grow, which means that less code is inlined at eachtry_reservesite. Additionally, this reduces the amount of parameters, so they can all be passed by registers.