mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-30 01:26:15 +02:00
maxPrimOpArity: 64 -> 8
This makes stack usage significantly more compact, allowing larger amounts of data to be processed on the same stack. PrimOp functions with more than 8 positional (curried) arguments should use an attrset instead.
This commit is contained in:
parent
0daccb1121
commit
12c91a823e
1 changed files with 2 additions and 2 deletions
|
@ -20,10 +20,10 @@ namespace nix {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* We put a limit on primop arity because it lets us use a fixed size array on
|
* We put a limit on primop arity because it lets us use a fixed size array on
|
||||||
* the stack. 16 is already an impractical number of arguments. Use an attrset
|
* the stack. 8 is already an impractical number of arguments. Use an attrset
|
||||||
* argument for such overly complicated functions.
|
* argument for such overly complicated functions.
|
||||||
*/
|
*/
|
||||||
constexpr size_t maxPrimOpArity = 64;
|
constexpr size_t maxPrimOpArity = 8;
|
||||||
|
|
||||||
class Store;
|
class Store;
|
||||||
class EvalState;
|
class EvalState;
|
||||||
|
|
Loading…
Reference in a new issue