String Handling in Formula Compiler

From Apache OpenOffice Wiki
< Calc‎ | Performance
Revision as of 16:43, 27 February 2009 by ErAck (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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