* In the garbage collector, delete invalid paths before deleting
unreachable paths. This matters when using --max-freed etc.: unreachable paths could become reachable again, so it's nicer to keep them if there is "real" garbage to be deleted. Also, don't use readDirectory() but read the Nix store and delete invalid paths in parallel. This reduces GC latency on very large Nix stores.
This commit is contained in:
		
							parent
							
								
									58d974336c
								
							
						
					
					
						commit
						b33da599c5
					
				
					 3 changed files with 45 additions and 12 deletions
				
			
		|  | @ -223,6 +223,7 @@ public: | |||
|     ~AutoCloseDir(); | ||||
|     void operator =(DIR * dir); | ||||
|     operator DIR *(); | ||||
|     void close(); | ||||
| }; | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue