* Store Value nodes outside of attribute sets. I.e., Attr now stores
a pointer to a Value, rather than the Value directly. This improves the effectiveness of garbage collection a lot: if the Value is stored inside the set directly, then any live pointer to the Value causes all other attributes in the set to be live as well.
This commit is contained in:
		
							parent
							
								
									64c3325b0b
								
							
						
					
					
						commit
						41c45a9b31
					
				
					 15 changed files with 150 additions and 130 deletions
				
			
		|  | @ -161,7 +161,7 @@ static Expr * loadSourceExpr(EvalState & state, const Path & path) | |||
| 
 | ||||
| 
 | ||||
| static void loadDerivations(EvalState & state, Path nixExprPath, | ||||
|     string systemFilter, const Bindings & autoArgs, | ||||
|     string systemFilter, Bindings & autoArgs, | ||||
|     const string & pathPrefix, DrvInfos & elems) | ||||
| { | ||||
|     Value v; | ||||
|  | @ -321,7 +321,7 @@ static bool isPath(const string & s) | |||
| 
 | ||||
| 
 | ||||
| static void queryInstSources(EvalState & state, | ||||
|     const InstallSourceInfo & instSource, const Strings & args, | ||||
|     InstallSourceInfo & instSource, const Strings & args, | ||||
|     DrvInfos & elems, bool newestOnly) | ||||
| { | ||||
|     InstallSourceType type = instSource.type; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue