From c232a8c4723e1a948fbeef2f7ea9486658191eeb Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Wed, 15 May 2013 22:14:40 -0400 Subject: Speed up ScColumn::HasEditCells() by keeping track of block position. Use block position hint to avoid re-starting search in the cell text attribute array. This change alone cuts additional 10 seconds off of the previously mentioned use case, by reducing the duration of HasEditCells() call from the previous ~10 seconds to a tiny fraction of a second. Change-Id: Id9f951cd235a88928c900619b6b66d7b8a057e0c --- sc/inc/conditio.hxx | 1 + 1 file changed, 1 insertion(+) (limited to 'sc/inc/conditio.hxx') diff --git a/sc/inc/conditio.hxx b/sc/inc/conditio.hxx index 9e7e14d224c2..87cfcc30446d 100644 --- a/sc/inc/conditio.hxx +++ b/sc/inc/conditio.hxx @@ -455,6 +455,7 @@ public: bool CheckAllEntries(); ScConditionalFormat* GetFormat( sal_uInt32 nKey ); + const ScConditionalFormat* GetFormat( sal_uInt32 nKey ) const; void CompileAll(); void CompileXML(); -- cgit