about summary refs log tree commit diff
path: root/src/librustc/dep_graph/graph.rs
AgeCommit message (Collapse)AuthorLines
2019-04-15Reduce the `DepNode` pre-allocation ratio.Nicholas Nethercote-2/+3
A code size of increase of 15% is overly generous. 2% is more realistic. This change reduces peak memory size by 20+ MiB on some workloads.
2019-03-26Combine input and eval_always query typesJohn Kåre Alsaker-33/+8
2019-02-14Rollup merge of #58365 - Zoxc:task-status, r=michaelwoeristerMazdak Farrokhzad-0/+15
Add an option to print the status of incremental tasks / dep nodes after running them r? @michaelwoerister
2019-02-13Rollup merge of #58273 - taiki-e:rename-dependency, r=matthewjasperMazdak Farrokhzad-1/+1
Rename rustc_errors dependency in rust 2018 crates I think this is a better solution than `use rustc_errors as errors` in `lib.rs` and `use crate::errors` in modules. Related: rust-lang/cargo#5653 cc #58099 r? @Centril
2019-02-13Rename rustc_errors dependency in rust 2018 cratesTaiki Endo-1/+1
2019-02-11Add an option to print the status of incremental tasks / dep nodes after ↵John Kåre Alsaker-0/+15
running them
2019-02-10rustc: doc commentsAlexander Regueiro-23/+23
2019-02-08Add a query type which is always marked as red if it runsJohn Kåre Alsaker-35/+54
2019-02-05move librustc to 2018Mark Mansi-5/+5
2019-01-28Use multiple threads by default. Limits tests to one thread. Do some renaming.John Kåre Alsaker-4/+4
2019-01-23Fix race condition when emitting stored diagnosticsJohn Kåre Alsaker-21/+63
2019-01-19Rollup merge of #57698 - michaelwoerister:issue57692, r=ZoxcMazdak Farrokhzad-1/+1
Fix typo bug in DepGraph::try_mark_green(). r? @Zoxc Fixes #57692.
2019-01-17Fix typo bug in DepGraph::try_mark_green().Michael Woerister-1/+1
2019-01-15Address commentsJohn Kåre Alsaker-4/+7
2019-01-15Optimize try_mark_green and eliminate the lock on dep node colorsJohn Kåre Alsaker-66/+99
2019-01-08Move diagnostics out from QueryJob and optimize for the case with no diagnosticsJohn Kåre Alsaker-1/+1
2018-12-31Clean up and optimize OpenTask / read_indexJohn Kåre Alsaker-161/+119
2018-12-31Address commentsJohn Kåre Alsaker-3/+7
2018-12-31Use `entry` API to avoid double lookup when interning dep nodesJohn Kåre Alsaker-30/+39
2018-12-31Group dep node data into a single structureJohn Kåre Alsaker-115/+80
2018-12-25Remove licensesMark Rousskov-10/+0
2018-11-26rustc-guide has movedMark Mansi-1/+1
2018-11-21rustc: implement and use Default on more types.Eduard-Mihai Burtescu-2/+2
2018-10-19Prefer `Default::default` over `FxHash*::default` in struct constructorsOliver Scherer-5/+5
2018-10-19Deprecate the `FxHashMap()` and `FxHashSet()` constructor function hackOliver Scherer-5/+5
2018-09-07rewrite constants to use NewType::MAX instead of u32::MAXNiko Matsakis-3/+1
Also, adjust the MAX to be `u32::MAX - 1`, leaving room for `u32::MAX` to become a sentinel value in the future.
2018-09-07remove all references to `private` from outside the macroNiko Matsakis-3/+7
2018-09-07change from tuple struct to brace structNiko Matsakis-3/+3
2018-09-07change syntax of `newtype_index` to look like a struct declNiko Matsakis-1/+3
2018-08-31Always add all modules to the global ThinLTO module analysis when compiling ↵Michael Woerister-1/+0
incrementally.
2018-08-31Support local ThinLTO with incremental compilation.Michael Woerister-1/+2
2018-08-23Use optimized SmallVec implementationIgor Gutorov-2/+2
2018-07-27Better Option handlingShotaro Yamada-1/+6
2018-07-25introduce new subtypingNiko Matsakis-1/+0
2018-06-14rustc: rename ty::maps to ty::query.Eduard-Mihai Burtescu-3/+3
2018-05-17Rename trans to codegen everywhere.Irina Popa-2/+2
2018-05-11Remove shared access to DepGraph::work_productsIsaac Whitfield-24/+1
2018-05-10Rollup merge of #50598 - whitfin:unnecessary-mut-borrow, r=michaelwoeristerAlex Crichton-7/+1
Remove unnecessary mutable borrow and resizing in DepGraph::serialize I might be mistaken, but I noticed this whilst in this file for something else. It appears that this mutable borrow is unnecessary and since it's locking it should be removed. The resizing looks redundant since nothing additional is added to the fingerprints in this function, so that can also be removed.
2018-05-10Rollup merge of #50565 - nnethercote:try_mark_green, r=michaelwoeristerAlex Crichton-10/+11
Use SmallVec for DepNodeIndex within dep_graph. This avoids a decent number of allocations, enough to speed up incremental runs of many rustc-benchmarks, the best by 2%. Here are the rustc-perf benchmarks that showed an improvement of at least 1% on one run: ``` unused-warnings-check avg: -1.7% min: -2.4% max: 0.0% unused-warnings-opt avg: -1.4% min: -2.0% max: 0.0% unused-warnings avg: -1.4% min: -2.0% max: -0.0% tokio-webpush-simple-check avg: -1.0% min: -1.7% max: 0.0% futures-opt avg: -0.9% min: -1.6% max: 0.0% encoding avg: -1.2% min: -1.6% max: -0.6% encoding-check avg: -0.9% min: -1.6% max: 0.0% encoding-opt avg: -0.8% min: -1.6% max: -0.1% futures avg: -0.9% min: -1.5% max: 0.0% futures-check avg: -0.9% min: -1.5% max: 0.1% regression-31157-check avg: -0.9% min: -1.5% max: 0.0% regex avg: -0.6% min: -1.4% max: 0.0% regression-31157-opt avg: -0.5% min: -1.4% max: 0.1% regression-31157 avg: -0.7% min: -1.4% max: 0.2% regex-opt avg: -0.6% min: -1.4% max: 0.1% hyper-check avg: -0.8% min: -1.4% max: -0.1% regex-check avg: -1.0% min: -1.4% max: 0.0% hyper-opt avg: -0.7% min: -1.4% max: -0.1% hyper avg: -0.7% min: -1.3% max: 0.1% piston-image-opt avg: -0.4% min: -1.3% max: 0.0% tokio-webpush-simple-opt avg: -0.3% min: -1.3% max: 0.0% piston-image-check avg: -0.5% min: -1.3% max: -0.0% syn-opt avg: -0.5% min: -1.3% max: 0.0% clap-rs-check avg: -0.3% min: -1.3% max: 0.2% piston-image avg: -0.5% min: -1.2% max: 0.1% syn avg: -0.5% min: -1.2% max: 0.1% syn-check avg: -0.6% min: -1.2% max: -0.1% issue-46449-opt avg: -0.4% min: -1.2% max: -0.1% parser-check avg: -0.7% min: -1.2% max: 0.1% issue-46449 avg: -0.5% min: -1.2% max: -0.0% ```
2018-05-09Remove unnecessary mutable borrow and resizingIsaac Whitfield-7/+1
2018-05-09Use SmallVec for DepNodeIndex within dep_graph.Nicholas Nethercote-10/+11
This avoids a decent number of allocations, enough to speed up incremental runs of many rustc-benchmarks, the best by 2%.
2018-05-07Make DepGraph::previous_work_products immutableWesley Wiser-19/+7
Fixes #50501
2018-04-25Move the Lock into OpenTaskJohn Kåre Alsaker-54/+49
2018-04-25Address commentsJohn Kåre Alsaker-16/+18
2018-04-25Make DepGraph thread-safeJohn Kåre Alsaker-132/+188
2018-03-19Convert SerializedDepGraph to be a struct-of-arraysWesley Wiser-4/+3
Fixes #47326
2018-03-16incr.comp.: Make sanity check in try_mark_green() aware of error conditions.Michael Woerister-2/+9
2018-03-09Move PROFQ_CHAN to a Session fieldJohn Kåre Alsaker-18/+19
2018-03-02Replace Rc with Lrc for shared dataJohn Kåre Alsaker-6/+6
2018-02-28Rollup merge of #48479 - mark-i-m:rustc-guide, r=nikomatsakiskennytm-2/+2
Start moving to the rustc guide! r? @nikomatsakis cc #48478