core: improvements to garbage collection
commitab1f35fe2502cf746ac2907c3ab710a0ca2f0b6b
authorSteve Bennett <steveb@workware.net.au>
Sat, 6 Jun 2020 22:48:10 +0000 (7 08:48 +1000)
committerSteve Bennett <steveb@workware.net.au>
Thu, 11 Jun 2020 08:45:21 +0000 (11 18:45 +1000)
tree21bc92b3fdc2d1a837159174004c78840c207a55
parent165c05e397d1a26f04808834257752a133ff4f70
core: improvements to garbage collection

Don't look up every object in the command table, since it can be slow
to do that. Only lookup if the object looks like a reference.

Also, script and expression objects can't contain references that
aren't already contained in sub-objects, so there is no need to
scan them for references.

Signed-off-by: Steve Bennett <steveb@workware.net.au>
jim.c