]> gitweb.factorcode.org Git - factor.git/commit
Exploit the fast-path for allocation of array with initial element 0 by changing
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Sun, 7 Dec 2008 00:37:28 +0000 (18:37 -0600)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Sun, 7 Dec 2008 00:37:28 +0000 (18:37 -0600)
commit0290be6e93e64b3b4fb5d77dd15b86f244427e1c
treea96d3e907d26c4026db691057556fa056ccbfb59
parent080cc92239e8f175487d06900720f7181ab4d6a9
Exploit the fast-path for allocation of array with initial element 0 by changing
new-sequence on arrays, the vector constructor, and resize-array, called when
growing vectors, to fill arrays with 0 instead of f. user code never observes the
initial value in these situations anyway. small speedup on bootstrap
core/arrays/arrays.factor
core/assocs/assocs.factor
core/namespaces/namespaces.factor
core/vectors/vectors.factor
vm/bignum.c
vm/types.c
vm/types.h