Skip to content

Optimizations

Rob Nelson requested to merge pull/5006/optimizemin into Bleeding-Edge

Created by: clusterfack

Optimizes reset variables

Initial costs about 1e-5 to 1e-6, whereas an operation that just sets a variable in an associative list using another variable in an associative list has a negligible cost even at extremely high calls. Therefore all the variables are initialized only once in a single associative type list holding all the vars.

Optimizes recursive_hear_check as used within say() code.

Currently it checks all atom/movables within view which is can be up to 225 lighting overlays in view, and checks each of these atom/movables recursively and then uses the list OR operator to add them in due to possible overlap. Instead recursively checks turfs only once and adds them to the found list due to eliminating the possibility of overlap.

Merge request reports