about summary refs log tree commit diff
path: root/src/libexpr/json-to-value.cc
AgeCommit message (Collapse)AuthorFilesLines
2016-08-29 Add builtin function "partition"Eelco Dolstra1-9/+0
The implementation of "partition" in Nixpkgs is O(n^2) (because of the use of ++), and for some reason was causing stack overflows in multi-threaded evaluation (not sure why). This reduces "nix-env -qa --drv-path" runtime by 0.197s and memory usage by 298 MiB (in non-Boehm mode).
2016-02-15 Fix broken number parsing in fromJSONEelco Dolstra1-4/+3
The call to tmp_number.append had its arguments mixed up. Also, JSON does not allow a trailing "," after array/object members.
2016-01-05 First hit at providing support for floats in the language.Christian Theune1-10/+15
2015-07-23 Optimize small listsEelco Dolstra1-1/+1
The value pointers of lists with 1 or 2 elements are now stored in the list value itself. In particular, this makes the "concatMap (x: if cond then [(f x)] else [])" idiom cheaper.
2014-09-19 Store Attrs inside BindingsEelco Dolstra1-3/+8
This prevents a double allocation per attribute set.
2014-08-20 Use proper quotes everywhereEelco Dolstra1-3/+3
2014-07-04 Add builtin function ‘fromJSON’Eelco Dolstra1-0/+144
Fixes #294.