summaryrefslogtreecommitdiffstats
path: root/genvmop.txr
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-09-03 20:25:47 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-09-03 20:25:47 -0700
commitc98f779588624b9f5479c9740920e7760a1f7d98 (patch)
tree9046ff13b827ae1577f1308c127f7d700c7ab7fc /genvmop.txr
parentd6d182a4e1bbc4752a668848e19aae1ece50ba1e (diff)
downloadtxr-c98f779588624b9f5479c9740920e7760a1f7d98.tar.gz
txr-c98f779588624b9f5479c9740920e7760a1f7d98.tar.bz2
txr-c98f779588624b9f5479c9740920e7760a1f7d98.zip
struct: recycle conses used for slot lookups.
When a slot is not found in a cache, and in other situations the object system conses up a key in order to search a the global slot_hash. We should be recycling these keys for reuse via rcyc_cons. This change makes recompilation of TXR's library (make clean-tlo; make) about 1.6% faster. * struct.c (lookup_slot, lookup_static_slot_desc, static_slot_p): Recycle the hash key cons cell via rcyc_cons, so it can be reused immediately.
Diffstat (limited to 'genvmop.txr')
0 files changed, 0 insertions, 0 deletions