This post is related to performance in inserting columns or rows in Aspose workbook.
I am using Aspose.Cells.1.9.4.13 for Java.
In my scenario, I am inserting rows or columns one by one in a 'for' loop e.g. if I have 10 columns to insert I will call insertColumn(....,1), 10 times.
Can there any performance improvement if I do insertColumns(...,10) only once instead of 10 different times?
The method Cells.insertColumns(int, int) and Cells.insertRows(int, int) do support insert more than one column/row at a time, you can simply set the second int value as the count of columns/rows you want to insert. It is sure performance of calling insertColumns/insertRows(pos, count) is better than calling insertColumns/insertRows(pos,1) count times.
Well, for .NET version, you may try to use Cells.InsertColumn in some loop for your need. And we may consider adding Cells.InsertColumns method in our future versions.
Thank you.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.