Difference between revisions of "Calc/Performance/string handling in formula compiler"

From Apache OpenOffice Wiki
Jump to: navigation, search
(toUpper() bottleneck)
(No difference)

Revision as of 16:43, 27 February 2009


Compiling formulas almost unconditionally calls toUpper() on every token parsed and spends way too much time in the underlying i18n routines.

  • No need to do this at all for tokens of operators, separators, parentheses, ... all tokens that do not involve letters.
  • When loading ODF documents, only a simplified ASCII toUpper() needs to be called, since all function names are stored using English names.
Personal tools