0bbfb082345af35cbccf66cdb0902ddc2c3fc386
llSubStringIndex and llListFindList with min=-1 allow optimizing this: if (llListFindList(...) < 0) -> if (~llListFindList(...)) That has been implemented since long, but we didn't have the data.
LSL PyOptimizer
LSL PyOptimizer is a LSL2 script optimizer written in Python 2. Currently it only supports code memory optimization (no speed optimization), only for Mono (no LSO), and only for the Second Life flavour of LSL (no OpenSim etc.).
HTML introduction, list of features and documentation available at http://lsl.project.zone/lsl-pyoptimizer/
Description
Optimizes a LSL2 script, folding constants, removing unused code and more. Adds new syntax features too.
Languages
Python
73.5%
LSL
26.5%