diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-10-03 15:34:59 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-10-03 15:34:59 -0700 |
commit | 38a2d429dfdc271ded13b3e446d75285fc875511 (patch) | |
tree | acbabcaa7959ec9c535d7e5af6dd437bd96a5232 /struct.h | |
parent | 139fae50e175a067ccd34c276f662e8abc14bec3 (diff) | |
download | txr-38a2d429dfdc271ded13b3e446d75285fc875511.tar.gz txr-38a2d429dfdc271ded13b3e446d75285fc875511.tar.bz2 txr-38a2d429dfdc271ded13b3e446d75285fc875511.zip |
Optimization: elide some nil slot initializations.
If a defstruct slot specifier calls for a slot to
be initialized to nil, that doesn't have to be done
explicitly if the slot isn't inherited.
* share/txr/stdlib/struct.tl (sys:prune-nil-inits): New
function.
(defstruct): Use prune-nil-inits to try to reduce the
lists of static and instance slot specifiers.
Diffstat (limited to 'struct.h')
0 files changed, 0 insertions, 0 deletions