Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2010-10-24 | * When allocating an attribute set, reserve enough space for all | Eelco Dolstra | 4 | -28/+21 | |
elements. This prevents the vector from having to resize itself. | |||||
2010-10-24 | * Keep attribute sets in sorted order to speed up attribute lookups. | Eelco Dolstra | 11 | -146/+184 | |
* Simplify the representation of attributes in the AST. * Change the behaviour of listToAttrs() in case of duplicate names. | |||||
2010-10-24 | * Don't create thunks for variable lookups (if possible). This | Eelco Dolstra | 3 | -23/+60 | |
significantly reduces the number of values allocated (e.g. from 8.7m to 4.9m for the Bittorrent test). | |||||
2010-10-24 | * Store attribute sets as a vector instead of a map (i.e. a red-black | Eelco Dolstra | 7 | -90/+129 | |
tree). This saves a lot of memory. The vector should be sorted so that names can be looked up using binary search, but this is not the case yet. (Surprisingly, looking up attributes using linear search doesn't have a big impact on performance.) Memory consumption for $ nix-instantiate /etc/nixos/nixos/tests -A bittorrent.test --readonly-mode on x86_64-linux with GC enabled is now 185 MiB (compared to 946 MiB on the trunk). | |||||
2010-10-23 | * Fix compiling without Boehm. | Eelco Dolstra | 1 | -10/+8 | |
* Fix the stats. | |||||
2010-10-23 | * Optimise string constants by putting them in the symbol table. | Eelco Dolstra | 4 | -39/+55 | |
2010-10-23 | * Make Value smaller by not storing redundant PrimOp info. | Eelco Dolstra | 2 | -25/+44 | |
* Clear pointers in Values after overwriting them to make sure that no objects are kept alive unnecessarily. | |||||
2010-10-23 | * Remove allocValues(). | Eelco Dolstra | 4 | -36/+14 | |
2010-10-22 | * In environments, store pointers to values rather than values. This | Eelco Dolstra | 2 | -35/+25 | |
improves GC effectiveness a bit more (because a live value doesn't keep other values in the environment plus the parent environments alive), and removes the need for copy nodes. | |||||
2010-10-22 | * Store Value nodes outside of attribute sets. I.e., Attr now stores | Eelco Dolstra | 15 | -130/+150 | |
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. | |||||
2010-10-22 | * Make building against the Boehm GC a configure option. | Eelco Dolstra | 5 | -14/+29 | |
2010-10-20 | * Keep some more stats. | Eelco Dolstra | 2 | -0/+12 | |
2010-10-20 | * Use the Boehm garbage collector to reclaim unused memory in the Nix | Eelco Dolstra | 5 | -15/+29 | |
expression evaluator. | |||||
2010-10-04 | * Make sure that config.h is included before the system headers, | Eelco Dolstra | 12 | -29/+29 | |
because it defines _FILE_OFFSET_BITS. Without this, on OpenSolaris the system headers define it to be 32, and then the 32-bit stat() ends up being called with a 64-bit "struct stat", or vice versa. This also ensures that we get 64-bit file sizes everywhere. * Remove the redundant call to stat() in parseExprFromFile(). The file cannot be a symlink because that's the exit condition of the loop before. | |||||
2010-10-04 | * If std::tr1::unordered_set is unavailable, use std::set. | Eelco Dolstra | 1 | -0/+9 | |
2010-10-04 | * In printMsg(), ignore failing writes to stderr if we're in an | Eelco Dolstra | 1 | -1/+10 | |
exception handler, otherwise throw an exception. We need to ignore write errors in exception handlers to ensure that cleanup code runs to completion if the other side of stderr has been closed unexpectedly. | |||||
2010-10-04 | * Hack needed for GCC 4.3.2 on OpenSolaris. | Eelco Dolstra | 1 | -1/+1 | |
2010-09-14 | * Doh. Remove debug message. | Eelco Dolstra | 1 | -1/+0 | |
2010-08-27 | * Oops - "null" was displayed as "true". | Eelco Dolstra | 1 | -1/+1 | |
2010-08-12 | * Make --cores work when building through the Nix daemon. | Eelco Dolstra | 3 | -1/+7 | |
2010-08-04 | * Remove "auto" and "guess" as synonyms for 0 in the handling of | Eelco Dolstra | 1 | -14/+3 | |
build-cores and --cores. They're superfluous and just complicate the parsing. | |||||
2010-08-04 | * Set the default system filter to "*". This ensures that (for | Eelco Dolstra | 1 | -7/+13 | |
instance) "nix-env -i wine" works on x86_64-linux, even though Wine is built on i686-linux. In the event that there are multiple matching derivations, prefer those built for the current system. | |||||
2010-08-02 | * Optimisation in the // operator: if one of the sets is empty, return | Eelco Dolstra | 1 | -6/+8 | |
the other set. | |||||
2010-08-02 | * intersectAttrs: optimise for the case where the second set is larger | Eelco Dolstra | 1 | -7/+7 | |
than the first set. (That's usually the case with callPackage.) | |||||
2010-07-15 | src/bsdiff-4.3/Makefile.am: include the 'compat-include' directory in ↵ | Peter Simons | 1 | -0/+2 | |
distribution tarballs | |||||
2010-06-24 | Fix build of bsdiff-4.3 on machines that don't have <err.h>, such as Solaris. | Peter Simons | 2 | -1/+13 | |
2010-06-24 | src/libutil/util.cc: include <limit.h> to ensure that PATH_MAX is defined | Peter Simons | 1 | -0/+1 | |
2010-06-24 | Include <cstring> to ensure that strcpy(), strlen(), and memset() are declared. | Peter Simons | 3 | -0/+6 | |
An "using namespace std" was added locally in those functions that refer to names from <cstring>. That is not pretty, but it's a very portable solution, because strcpy() and friends will be found in both the 'std' and in the global namespace. | |||||
2010-06-23 | Added support for passing an (impure) NIX_BUILD_CORES variable to build ↵ | Peter Simons | 4 | -0/+23 | |
expressions. This patch adds the configuration file variable "build-cores" and the command line argument "--cores". These settings specify the number of CPU cores to utilize for parallel building within a job, i.e. by passing an appropriate "-j" flag to GNU Make. The default value is 1, which means that parallel building is *disabled*. If the number of build cores is specified as 0 (synonymously: "guess" or "auto"), then the actual value is supposed to be auto-detected by builders at run-time, i.e by calling the nproc(1) utility from coreutils. The environment variable $NIX_BUILD_CORES is available to builders, but the contents of that variable does *not* influence the hash that goes into the $out store path, i.e. the number of build cores to be utilized can be changed at will without requiring any re-builds. | |||||
2010-06-14 | * In importPath() and exportPath(), lock the temporary directory to | Eelco Dolstra | 1 | -0/+4 | |
prevent it from being deleted by the garbage collector. | |||||
2010-06-10 | * builtins.toXML: propagate the string context. This is a regression | Eelco Dolstra | 3 | -5/+12 | |
from the old ATerm-based evaluator. | |||||
2010-06-04 | * Applied a patch from David Brown to prevent `nix-store --optimise' | Eelco Dolstra | 1 | -1/+15 | |
from failing on rename() on BtrFS. | |||||
2010-06-02 | (no commit message) | Eelco Dolstra | 1 | -0/+1 | |
2010-06-01 | * Turn build errors during evaluation into EvalErrors. | Eelco Dolstra | 4 | -4/+7 | |
2010-05-31 | Add XML output to `nix-store'. | Ludovic Courtès | 5 | -3/+100 | |
* src/nix-store/Makefile.am (nix_store_SOURCES): Add `xmlgraph.cc' and `xmlgraph.hh'. * src/nix-store/help.txt (Operations): Document `--xml'. * src/nix-store/nix-store.cc (opQuery): Handle `--xml'. * src/nix-store/xmlgraph.cc, src/nix-store/xmlgraph.hh: New files. | |||||
2010-05-31 | Comment out dead code in `nix-store'. | Ludovic Courtès | 1 | -1/+1 | |
* src/nix-store/dotgraph.cc (pathLabel): Move within #if 0 section. | |||||
2010-05-30 | * Remove an accidentally committed debug statement. | Eelco Dolstra | 1 | -2/+0 | |
2010-05-18 | * The << operator on values should be const. | Eelco Dolstra | 3 | -3/+3 | |
2010-05-15 | * Restore the __overrides feature that was lost somewhere in the | Eelco Dolstra | 2 | -3/+21 | |
fast-eval branch. | |||||
2010-05-12 | * Print attributes in sorted order. | Eelco Dolstra | 1 | -2/+7 | |
2010-05-12 | * Implemented tryEval, the last missing primop in the fast-eval | Eelco Dolstra | 1 | -12/+6 | |
branch. Also added a test for tryEval. | |||||
2010-05-07 | (no commit message) | Eelco Dolstra | 1 | -0/+2 | |
2010-05-07 | * Sync with the trunk. | Eelco Dolstra | 6 | -25/+55 | |
2010-05-07 | * Store position info for inherited attributes. | Eelco Dolstra | 4 | -25/+29 | |
2010-05-07 | * Updated addErrorContext. | Eelco Dolstra | 1 | -6/+7 | |
2010-05-07 | * Keep track of the source positions of attributes. | Eelco Dolstra | 8 | -86/+117 | |
2010-05-06 | * Store attribute positions in the AST and report duplicate attribute | Eelco Dolstra | 6 | -56/+56 | |
errors with position info. * For all positions, use the position of the first character of the first token, rather than the last character of the first token plus one. | |||||
2010-04-27 | (no commit message) | Eelco Dolstra | 1 | -1/+1 | |
2010-04-23 | * Don't need the test program anymore. | Eelco Dolstra | 2 | -135/+0 | |
2010-04-22 | * Simplify the implementation of `with'. This gives a 7% speedup in | Eelco Dolstra | 4 | -30/+15 | |
evaluating the NixOS system configuration. |