Bug 89387 - improve performance for some matrix operations

Kohei Yoshida libreoffice at kohei.us
Wed Dec 14 22:09:32 UTC 2016

On Wed, 2016-12-14 at 13:04 +0100, Eike Rathke wrote:
> Hi Filippo,
> On Wednesday, 2016-12-14 09:59:28 +0000, Filippo giacchè wrote:
> > 
> > -why there is no need to modify that function?
> Because it is called only in one place and that place in turn is
> called
> very rarely. There's almost no gain over all if only MatCopy() alone
> was
> optimized, despite that it proabbly can't, unless the underlying
> matrix
> structures/algorithms are touched from which all matrix functions
> could
> benefit, which would involve getting acquainted with
> mdds::multi_type_matrix that is about the hardest stuff you can get
> into.

On that front, I might just add that I've made the following change to
mdds::multi_type_matrix::copy (which MatCopy() uses internally)


which *should* automatically improve the performance of MatCopy() quite
a bit, depending on the use case.

The version of mdds we use on the master branch (and possibly some of
the older stable branches) already has this change in.


More information about the LibreOffice mailing list