https://issues.apache.org/ooo/show_bug.cgi?id=120575

--- Comment #2 from [email protected] ---
Root cause: 
in xls loading procedure, ScPatternAttr::operator== occupies too much time, in
this function, two sfxitemset are compared by memcmp(...), this is a time
consuming operation.

Resolution:
Instead of memcmp(...), two sfxitemset can be compared 'quickly' by the hashkey
only. And a function SfxItemSet::QuickCompare( SfxItemSet & rCmp) instead of
EqualPatternSets(...).

Test result:
In ScPatternAttr::operator==, SfxItemSet::QuickCompare( SfxItemSet & rCmp) will
be called 3141717 times, including 3114837 times only comparing hash key and
directly return, memcmp(...). will be called 26880 times.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to