No description
Find a file
Sei Lisa d2e64e25a6 Rewrite Mono float to string conversion; fix llDumpList2String
llDumpList2String has changed its behaviour with respect to minus zero. Now it converts -0.0 to a string without the minus sign.

While testing this, we noticed several mismatches in the float to string conversions; the existing routine did not properly convert some values because as we discovered later, it is subject to double rounding; one of them is the built-in round-to-nearest-or-even while getting the first 7 significant digits, and the other is just an increment when the digit is a 5 or more, so round to nearest, ties away from zero, and is performed on the digit past the five or six visible digits that LSL shows.

The new code is a tad easier to understand and more robust.

A first variant of the new code is left commented out for history's sake, and will be removed in the next commit.
2022-05-17 22:28:49 +02:00
lslopt Rewrite Mono float to string conversion; fix llDumpList2String 2022-05-17 22:28:49 +02:00
pcpp@18d5bc4cdb Update to latest pcpp, remove expression evaluator 2020-11-04 13:09:34 +01:00
unit_tests Rewrite Mono float to string conversion; fix llDumpList2String 2022-05-17 22:28:49 +02:00
.gitignore Add the outfile.tmp file generated by a test to .gitignore 2019-01-15 23:22:02 +01:00
.gitmodules Don't report pcpp as modified if it has untracked files 2019-01-12 20:33:52 +01:00
builtins-unittest.txt Get rid of builtins.txt.dat by adding a parameter to the parser ctor. 2015-07-09 20:35:14 +02:00
builtins.txt New constants and functions; some refactoring of lslfuncopt 2022-05-13 14:49:18 +02:00
COPYING Add copyright notices to all files, to prepare the program for release. 2015-03-05 23:18:41 +01:00
cpreproc.py Update copyright year 2021-01-05 23:27:21 +01:00
fndata.txt New constants and functions; some refactoring of lslfuncopt 2022-05-13 14:49:18 +02:00
main.py Update copyright year 2021-01-05 23:27:21 +01:00
README.md Update link to point to lsl.blacktulip-virtual.com instead of lsl.project.zone 2018-01-18 15:41:28 +01:00
run-tests.py Update copyright year 2021-01-05 23:27:21 +01:00
strutil.py Update copyright year 2021-01-05 23:27:21 +01:00

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.blacktulip-virtual.com/lsl-pyoptimizer/