Use of GetInputString When Saving Text Cells
To get the content of text cells for saving, the implementation of the UNO API getFormula method is re-used (ScCellObj::GetInputString_Impl). For the API, a single quote character is added if the string value can be parsed as a number (this is needed so a setFormula call with the result string will create a text cell again). For the file format, this quote character isn't needed and is removed. But determining whether to add the quote involves parsing the string, so leaving that step out will improve the performance of saving files with many text cells.