Bug 73396

Summary: FILESAVE: Calc Save Very Slow (6x slower) When Cells Contain Carriage Return Characters (win only)
Product: LibreOffice Reporter: wirc3345
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED FIXED    
Severity: major CC: barta
Priority: high    
Version: 4.1.4.2 release   
Hardware: x86-64 (AMD64)   
OS: Windows (All)   
Whiteboard: BSA NoRepro:4.2.0.2:OSX
Crash report or crash signature: Regression By:
Attachments: test file with CR
test file without CR

Description wirc3345 2014-01-08 14:13:51 UTC
Problem description: 

Carriage return characters in cells cause very slow save

Steps to reproduce:
Use a reasonable size ods file spreadsheet, mine is 2MB.
Add carriage returns in the text of around 2000 cells
Save the spreadsheet

Current behavior:
Takes 30 seconds to save the spreadsheet
Without the carriage return characters takes around 5 s

Expected behavior:
Take 5s to save

I found this bug when trying to work out why Libre Office is so slow compared to Excel and Open Office. Hope we can get a fix in the next release, I am going back to Open Office until then as this is a show stopper for me.


              
Operating System: Windows 7
Version: 4.1.4.2 release
Comment 1 tommy27 2014-01-08 21:04:29 UTC
please upload a test file
Comment 2 wirc3345 2014-01-15 15:17:17 UTC
Created attachment 92150 [details]
test file with CR
Comment 3 wirc3345 2014-01-15 15:17:53 UTC
Created attachment 92151 [details]
test file without CR
Comment 4 wirc3345 2014-01-15 15:19:55 UTC
Created some simple test files these take 4s and 19s to save on my PC.

Only difference is that 2000 of the cells in the file "test with CR.ods" have carriage returns. All the other cells are identical.
Comment 5 retired 2014-01-16 09:30:47 UTC
NoRepro:4.2.0.2:OSX

Both test files save in under 1 sec here.

Is this bug still valid / reproducible with the latest pre-release 4.2.0.2: http://www.libreoffice.org/download/pre-releases/

Please also try resetting your user profile and let us know if that helps: https://wiki.documentfoundation.org/UserProfile

Should this be still reproducible for you with the latest LO release please set this bug back to UNCONFIRMED. Should this issue be solved set it to WORKSFORME.

Setting to NEEDINFO until more detail is provided.
Comment 6 wirc3345 2014-01-16 16:06:52 UTC
Both test files save in less than 1 second on release candidate, huge improvement.

Original spreadsheet saves in 7s which is now faster than open office. Does seem quite unstable though, hung once during save as while I was testing. If I can reproduce the hang systematically will raise separate defect report.
Comment 7 wirc3345 2014-01-17 09:47:55 UTC
Tried using the release candidate today, it hung about once every hour. Doesn't look to be related to save, seems quite random.
Comment 8 Björn Michaelsen 2014-01-17 11:08:48 UTC
(This is an automated message.)

This bug is not a MAB and in NEEDINFO, thus gradually adjusting priority to high. Please see the QA mailing list or the ESC call minutes for details.
Comment 9 tommy27 2014-04-27 12:38:22 UTC
@wirc
do you still see issue with LibO 4.2.3.3?
did you find reproducible steps to show the bug?
Comment 10 wirc3345 2014-04-30 14:58:41 UTC
No problem on 4.2.2.1.

Also stability is much improved. Still a few display issues but these are not critical.
Comment 11 tommy27 2014-04-30 18:04:36 UTC
(In reply to comment #10)
> No problem on 4.2.2.1.

glad to hear that.

> Also stability is much improved. Still a few display issues but these are
> not critical.


feel free to report them in a separate bug with proper description and steps to reproduce.