Hi,
doing debugging of a program, I noticed something strange in the management of files .ods.
For each file .ods, these three files are handled: styles.xml, content.xml, settings.xml.
In each case, these operations are performed:
- The file XML is unzipped and saved to disk
- The file XML is read and saved to a stream
- The file XML is deleted
This management can create a problem if, for example, 2 programs that use fpspreadsheet accessing at the same time to 2 ods files present in the same directory.
Also, if a program were to analyze several files .ods, this administration would do several disk accesses, slowing the program.
I think it can be arranged by unzip the 3 files in a stream, without saving them to disk, as is explained here:
http://wiki.lazarus.freepascal.org/paszlib#Unzip_file_to_a_streamThanks in advance, Mario