[Libreoffice-commits] core.git: Changes to 'private/jmux/sorted-pagedesc+spzfrmfmts'
Jan-Marek Glogowski
glogow at fbihome.de
Tue Jun 10 05:04:54 PDT 2014
New branch 'private/jmux/sorted-pagedesc+spzfrmfmts' available with the following commits:
commit c7cae77dd724389afb6b7c5e790824e767ca783c
Author: Jan-Marek Glogowski <glogow at fbihome.de>
Date: Tue Jun 10 12:32:32 2014 +0200
Optimize lcl_GetUniqueFlyName
Change-Id: Ic894ee471982496ac82dc426c803aba92b8554c2
commit 5ae5d3db81dc19a387c1aa1879cf339df1a2e8c7
Author: Jan-Marek Glogowski <glogow at fbihome.de>
Date: Tue Jun 10 11:40:43 2014 +0200
Optimize FindFlyByName
Change-Id: I004226f8aded4e7909a104ec0ba405223f2d7e0e
commit 4a96084456eb4d11076cbb552e1894cc18a7d1c0
Author: Jan-Marek Glogowski <glogow at fbihome.de>
Date: Mon Jun 9 17:31:49 2014 +0200
.gitignore /.gdb_history
Change-Id: I254c0104010cc1a1c12bbf1af048966de66924e6
commit 343b6508a2baafbf73f2b52569225c0f200b2ac5
Author: Jan-Marek Glogowski <glogow at fbihome.de>
Date: Sun Jun 8 19:41:53 2014 +0200
Convert SwFrmFmts to a o3tl::sorted_vector
Change-Id: I6ca87d3dd9a3b7067380bb7ebaef306b87516dfb
commit 353c47a535aa014bc953ca91575a73631559f9ee
Author: Jan-Marek Glogowski <glogow at fbihome.de>
Date: Sun Jun 8 01:59:29 2014 +0200
Catchall prepare sorted SwFrmFmts
Change-Id: I2e91cb4d650b1c46c531885869d201edba84e5a6
commit cd2059a635baee9671f17e6f307073b96ad91005
Author: Jan-Marek Glogowski <glogow at fbihome.de>
Date: Sun Jun 8 01:57:54 2014 +0200
Add sorted vector special case for delete all
Specializes DeleteAndDestroyAll() to optionally keep the default
item.
Change-Id: I570fc6614a59fcf08c4569d44873ed79f4af5eda
commit 4fe496bd04d1dac023b4f1941c48d193ffe890e0
Author: Jan-Marek Glogowski <glogow at fbihome.de>
Date: Thu May 22 14:25:32 2014 +0200
Merge common code of sw format lists
Moves the common code into an intermediate template class, which
still provides an SwFmtsBase interface.
The only changes are some dropped explicit "const" casts.
Change-Id: I8894fbc53e7b1ac1b1e590bba932a9f9cc33f448
commit 726e6bd430250e31496692186c27bc230a213a38
Author: Jan-Marek Glogowski <glogow at fbihome.de>
Date: Mon Jun 2 17:46:39 2014 +0200
Optimize AppendAllObjs for vectors
Removing items from large vectors, especially from the front, is
very expensive. For a large mail merge job it took most of the time
to memmove the descending vector items.
Instead of remove, this simply overwrites the current with the last
element.
Change-Id: I12395388f4e315009602984acb443382fcce9f44
commit 815a1bce3389415f8a4dbc9eae6015b168176909
Author: Jan-Marek Glogowski <glogow at fbihome.de>
Date: Fri Jun 6 09:44:34 2014 +0200
Directly convert frame name tails to Int32
This is a little optimization for large mail merge jobs with many
frames. The current alorithm doesn't only try to produce unique but
also reasonable names for the frames.
Per se the algorithm is horrible ineffective for large numbers of
frames, but this is impossible to fix without changing the
underlying vector of frames to a sorted one to find and check just
the correctly prefixed frames.
This patch directly converts the frame names tail instead of
creating substring of the number tail, which saves billions of
malloc and free calls seen with my sample document.
Change-Id: Iefdee4053480f40f106c49867bc5a64ec207ba1b
commit 18b689525b8f87ff987484d748b2e7d04c5fe081
Author: Jan-Marek Glogowski <glogow at fbihome.de>
Date: Wed Jun 4 17:28:09 2014 +0200
MM: Don't special case the first document
Change-Id: Ied152af4a6c325b80fa80ae5fcb3f7a8897107e1
commit a0419a337705eabdaee8afc86f4c9b97b577548a
Author: Jan-Marek Glogowski <glogow at fbihome.de>
Date: Fri May 16 23:42:32 2014 +0200
Convert SwPageDescs to a o3tl::sorted_vector
Originally I planned to use a boost::container::flat_map, but there
seem to be no way to directly access the indexed vector.
And since this already needs the "first item is default" special
handling, o3tl::sorted_vector is used with the offset.
Change-Id: Idfb79af8ddfd5f5e2e6ca312b46d30e3ddc166d9
commit 653bceb8065a6f420505694ae48131e02ab04c4c
Author: Jan-Marek Glogowski <glogow at fbihome.de>
Date: Mon May 12 18:55:58 2014 +0200
Fixup vector stuff (catchall)
Fixup many occations of broken vector => sorted_vector stuff and
duplicated code.
This drops a simple optimization from the ww8 filter. I'm not
sure it's worth just to register and update the new styles.
Change-Id: Ia10a5672e882799ee0cb7f14382558f836bc1128
commit 8cc7b7ffcc31defe579fe86de629726f15e7adb7
Author: Jan-Marek Glogowski <glogow at fbihome.de>
Date: Mon May 12 16:30:34 2014 +0200
Change MakePageDesc return type
Almost everybody except SwDoc::ClearDoc just use the index once
to get the SwPageDesc pointer.
As the index will be instable for delete and insert, this
just adds an additional lookup to ClearDoc and let everybody
else use the SwPageDesc pointer.
Change-Id: I4b2491813530fd3efb2480e389912c410c221168
commit a9bf268536db161d5c02978c5f1c85d51ffd3bdd
Author: Jan-Marek Glogowski <glogow at fbihome.de>
Date: Wed May 14 15:03:53 2014 +0200
Optimize SwPageDesc lookup by pool ID
There are just ten default page pool style IDs.
So instead of walking the whole style list to find the matching
style ID, this introduces an additional index / array for faster
lookup.
Change-Id: Iacfa40c76e5502dc90665be0a96388de50d5ec16
commit 1b9170e40bdd5fb32812a47c96bfe0b5311e64c9
Author: Jan-Marek Glogowski <glogow at fbihome.de>
Date: Mon May 12 16:00:02 2014 +0200
Change SwPageDescs to o3tl::sorted_vector like API
This moves the SwPageDescs class to pagedesc.hxx, changes the
std::vector inheritance to private and extends the class to a
o3tl::sorted_vector compatible API.
The insert internally uses still uses push_back.
This also drops multiple implementations for the "find SwPageDesc
by name algorithm".
This should just be a cleanup patch and is a preparation for the
change of SwPageDescs from vector to o3tl::sorted_vector.
Change-Id: I08561c139d1af9bad6ca68be27466fac33fab384
commit 3f1c34cd231bcb7067ccb0d4e64d5ab5cdab4879
Author: Jan-Marek Glogowski <glogow at fbihome.de>
Date: Mon May 12 10:20:00 2014 +0200
Sorted vector special case: default first element
A lot of code using vectors in LO relies on the fact, that the
first entry in the vector contains the default value.
Therefore this adds a boolean to the constructor, which leaves
the first entry unsorted in the vector and special cases find
and insert.
Additionally lower_bound, upper_bound and Resort will skip
the first element.
Change-Id: I9603f47be4fb56d991f42066ce9f5ad0ab6ffdf8
More information about the Libreoffice-commits
mailing list