Bug 76051

Summary: CONFIGURATION: High Number of iteration and time to convert the byte array in OOInputstream
Product: LibreOffice Reporter: Sugam <sugam01>
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: jbfaure
Priority: medium Keywords: possibleRegression
Version: 4.2.0.4 release   
Hardware: Other   
OS: macOS (All)   
Whiteboard: BSA
Crash report or crash signature: Regression By:

Description Sugam 2014-03-12 04:22:07 UTC
I am using Libo APIs to try to export a CALC and i need to convert the available bytes to OOInputSteam. The code is 
 
                       byte[] byteArr = bos.toByteArray(); // These are the bytes to available data
			oois 		   = new OOInputStream(byteArr);
			
			loadProps[loadProps.length-1]		 = new PropertyValue();
			loadProps[loadProps.length-1].Name 	 = "InputStream";									
			loadProps[loadProps.length-1].Value  = oois; 
			
			long starttime = System.nanoTime();
			
		xSpreadsheetComponent =          
                   xComponentLoader.loadComponentFromURL("private:stream", "_blank", 0, loadProps);
			
loadComponentFromURL part runs through the OOINputstream's readbyte method. I have tried and used the differnet versions of LibreOffice. LibreOffice4.1.0.4 get 55 iteration and some 40000 bytes. LibreOffice4.1.5 get 6264 iteration and 74000 bytes for the same calc documents. These version takes the different time to finish the load which is quiet less in version 4.1.0.4. Are these the issues with the other version? Which is the right version to use for?
Operating System: Mac OS X
Version: 4.2.0.4 release
Last worked in: 4.1.0.4 release
Comment 1 Jean-Baptiste Faure 2014-03-12 05:39:11 UTC
Same description as bug 76053. Keep the newest.

*** This bug has been marked as a duplicate of bug 76053 ***
Comment 2 Robinson Tryon (qubit) 2015-12-15 10:54:58 UTC
Migrating Whiteboard tags to Keywords: (possibleRegression)
[NinjaEdit]