Bug 95785 - FILEOPEN FILESAVE office:value-type="float" calcext:value-type="int"
Summary: FILEOPEN FILESAVE office:value-type="float" calcext:value-type="int"
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-12 21:54 UTC by Jérôme
Modified: 2015-11-12 22:50 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jérôme 2015-11-12 21:54:22 UTC
A number is currently stored as float. Could we possibly support an integer format as "calcext:value-type" attribute ?

This would allow speed and memory optimizations for files created with Calc when the file is opened and when it calculates with integer internal representation instead of float internal representation.

However the Open Document Format compatibility would be supported by the "office:value-type" attribute. If a number belongs to the integer set then it belongs to the float set. Therefore the reading of the file with an other tool would keep the data but it would loose the integer typing (it would only decrease the performance).
Comment 1 Eike Rathke 2015-11-12 22:50:43 UTC
What makes you think that an additional integer value-type would speed anything up? Internal storage and calculations are in double anyway, having to differentiate between integer and float during save would just slow down things, and performance gain during load would just be marginal, if any at all. Unless you want to majorly rewrite the engine there's no advantage in integers.