Eelco Dolstra
c6ff34bd86
Measure GC duration
2019-04-29 23:04:50 +02:00
Eelco Dolstra
54e1ac6102
Slight optimization
2019-04-29 23:04:50 +02:00
Eelco Dolstra
abbbad5679
Add 'nix list-tarballs' command
...
E.g.
$ nix list-tarballs nixpkgs.hello
http://tarballs.nixos.org/stdenv-linux/x86_64/4907fc9e8d0d82b28b3c56e3a478a2882f1d700f/bootstrap-tools.tar.xz
...
mirror://gnu/hello/hello-2.10.tar.gz
$ nix list-tarballs --json -f '<nixpkgs/maintainers/scripts/all-tarballs.nix>'
(BTW the latter returns about 6000 files more than find-tarballs.nix.)
2019-04-29 23:04:50 +02:00
Eelco Dolstra
b19b221f98
SourceExprCommand: Print evaluator stats
2019-04-29 23:04:50 +02:00
Eelco Dolstra
76325ce5cd
DerivationOutput::parseHashInfo: Return a tuple
2019-04-29 22:11:14 +02:00
Eelco Dolstra
c3b55a96a7
Bindings::get(): Add convenience method
...
This allows writing attribute lookups as
if (auto name = value.attrs->get(state.sName))
...
2019-04-29 20:32:43 +02:00
Eelco Dolstra
6d118419f2
Garbage-collect paths
2019-04-29 16:27:56 +02:00
Eelco Dolstra
2995f9c48f
Garbage-collect strings
2019-04-29 16:27:56 +02:00
Eelco Dolstra
9b822de4ef
Inline allocValue()
2019-04-29 16:27:56 +02:00
Eelco Dolstra
14f7a60755
Keep some stats
2019-04-24 13:46:34 +02:00
Eelco Dolstra
80accdcebe
Remove Boehm GC dependency
2019-04-24 00:07:42 +02:00
Eelco Dolstra
69adbf5c77
Rename
2019-04-23 22:50:01 +02:00
Eelco Dolstra
35b76b21ee
Size -> size_t
2019-04-23 22:47:30 +02:00
Eelco Dolstra
ba36d43d46
Freelist improvements
2019-04-23 22:44:17 +02:00
Eelco Dolstra
93b3d25bbb
Move parseSize() to libutil
2019-04-23 22:33:10 +02:00
Eelco Dolstra
f7f73cf5ae
Allow disabling some GC debug checks
2019-04-23 13:56:38 +02:00
Eelco Dolstra
a38a7b495c
Use Value::misc to store strings
...
This allows strings < 23 characters (up from 16) to be stored directly
in Value. On a NixOS 19.03 system configuration evaluation, this
allows 1060588 out of 1189295 (89%) strings to be stored in Value.
2019-04-23 12:54:12 +02:00
Eelco Dolstra
742a8046de
Store short strings in Values
...
The vast majority of strings are < 16 bytes, and so can be stored
directly in a Value. This saves a heap allocation and an indirection.
2019-04-23 12:20:27 +02:00
Eelco Dolstra
2160258cc4
Store contexts as symbols
...
This provides some deduplication since most contexts are used multiple
times.
Also, store singleton contexts directly in the Value object. This
saves a 16-byte Context object. This is useful because the vast
majority of contexts are singletons, e.g. 23723 out of 26138 in a
NixOS 19.03 system configuration.
2019-04-23 11:07:47 +02:00
Eelco Dolstra
e392ff53e9
Remove a word from Env
2019-04-23 01:11:50 +02:00
Eelco Dolstra
ae5b76a5a4
Checkpoint
2019-04-23 00:39:14 +02:00
Eelco Dolstra
7c716b4c49
Checkpoint
2019-04-22 23:25:47 +02:00
Eelco Dolstra
4237414f4d
Checkpoint
2019-04-15 18:40:35 +02:00
Eelco Dolstra
bb6e6923f2
Add environment variable NIX_SHOW_SYMBOLS for dumping the symbol table
2019-04-11 23:04:13 +02:00
Eelco Dolstra
41ba5135e0
primeCache(): Barf if builds are needed but not allowed
...
Fixes #2753 .
2019-04-01 21:09:49 +02:00
Eelco Dolstra
2bc6304793
getMachines(): Cache result
2019-04-01 21:09:35 +02:00
Eelco Dolstra
2f59b30251
Use Nixpkgs 19.03
2019-04-01 21:09:25 +02:00
Eelco Dolstra
f32fbf952d
Fix Bison 3.3 warning
2019-03-27 21:09:31 +01:00
Eelco Dolstra
e489f5cabf
Update eval-okay-types.exp to match #1828
2019-03-27 21:07:04 +01:00
Graham Christensen
6e9e34ea1f
Merge pull request #2744 from veprbl/patch-8
...
manual: mention the "channel:" shorthand for NIX_PATH
2019-03-25 21:49:48 -04:00
Dmitry Kalinkin
75ec68f93a
manual: mention the "channel:" shorthand for NIX_PATH
...
Bumped to 15.09 because older channels, when downloaded from
nixos.org, require firefox to be accessed via `pkgs.firefox`
2019-03-25 20:55:28 -04:00
Eelco Dolstra
5c05c238e6
Merge pull request #1828 from zimbatm/isPath
...
Add isPath primop
2019-03-25 19:58:11 +01:00
Will Dietz
63e7fc5096
perl/configure.ac: fix for new version location too
2019-03-25 09:18:30 +01:00
Will Dietz
1f9c8cd68b
configure.ac: update for new version file location
2019-03-25 09:18:30 +01:00
Will Dietz
42e2d5e7b7
store-api.hh: add missing include for unordered_map
2019-03-25 09:18:30 +01:00
Will Dietz
0bebca402a
version -> .version, avoid conflict with C++20 <version>
2019-03-25 09:18:30 +01:00
Domen Kožar
6f0359012c
Merge pull request #2693 from thoughtpolice/scripts/multi-user-sandbox
...
scripts: remove default 'sandbox = false' from multi-user installer
2019-03-24 19:45:56 +07:00
zimbatm
514b3c7f83
Add isPath primop
...
this is added for completeness' sake since all the other possible
`builtins.typeOf` results have a corresponding `builtins.is<Type>`
2019-03-24 11:36:49 +01:00
Eelco Dolstra
56f1ed5579
Merge pull request #2741 from mayflower/primop-type-desc
...
eval: improve type description for primops and applied primops
2019-03-21 15:49:19 +01:00
Linus Heckemann
2aa89daab3
eval: improve type description for primops and applied primops
...
This can make type errors a little easier to understand.
2019-03-21 15:31:46 +01:00
Eelco Dolstra
6a3dfcb623
Merge pull request #2739 from mayflower/builtins-doc-explicit
...
manual: include builtins.* for globally available builtins
2019-03-21 12:24:44 +01:00
Linus Heckemann
6f093073b6
manual: include builtins.* for globally available builtins
...
This improves searchability.
2019-03-21 09:37:22 +01:00
Eelco Dolstra
ffeabf8390
Merge pull request #2731 from nomeata/link-to-conf-builders-use-substitutes
...
Link to `builders-use-substitutes` in chapter on distributed builds
2019-03-18 13:54:47 +01:00
Joachim Breitner
684c7fff80
Link to builders-use-substitutes in chapter on distributed builds
...
fixes #2730 .
2019-03-16 19:03:40 +01:00
Eelco Dolstra
806291d18c
Merge pull request #2727 from Chakerbh/master
...
Add a 5 seconds of timeout to connecting to S3.
2019-03-15 21:25:10 +08:00
Chaker Benhamed
81a23fa7e2
Add a 5 seconds of timeouts to connect to S3.
...
The default is 1000ms, but we can hit it a lot of we don't have direct
link to AWS (e.g. using VPN).
2019-03-15 13:23:58 +01:00
Graham Christensen
caf297a9d3
Merge pull request #2725 from andir/docs/s3-typo
...
docs: fix typo in AllowDirectReads
2019-03-14 18:53:57 -04:00
Andreas Rammhold
34fade478a
docs: fix typo in AllowDirectReads
...
It was just missing an `l` but should be fixed anyway.
2019-03-14 23:51:18 +01:00
Eelco Dolstra
1f64f4c7c8
pkg-config files: Use c++17
2019-03-14 14:11:12 +01:00
Eelco Dolstra
ef52ccf035
experimental/optional -> optional
2019-03-14 14:10:52 +01:00