So should I conclude that nobody cares? On the one hand in-lining the arithmetic operations in SUM() - and probably MOD() as well for consistency - will speed those operations up significantly. On the other, making the change will increase the size of the interpreter, perhaps by a few hundred bytes, which can impact cache efficiency and risk of introducing a bug.Richard Russell wrote: ↑Tue 03 Feb 2026, 13:50 The question, of course, is whether this kind of 'micro optimisation' is sensible and whether I should update the release versions. What do you think?
Generally I'm not enthusiastic about micro-optimisation, but it is true that the whole-array operations in BBC BASIC are one of its most valuable (and unusual) features and if used with care can very significantly benefit performance. So a speed-up here can be argued to have a disproportionate benefit compared with its impact on the language as a whole.
And of course it could be argued that getting inconsistent results when rating submissions to a challenge is itself something worth addressing!