summaryrefslogtreecommitdiff
path: root/sw/inc/bparr.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-10-21 15:56:55 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-22 08:31:56 +0200
commit88e78230dedb0767e2f5067961b66a3858b3b7a5 (patch)
tree80fae9601ced0326ba9a8c8150748cd016bf0982 /sw/inc/bparr.hxx
parent116340b2bab8365c08bec532e1a7126b5312e159 (diff)
re-arrange BlockInfo a little
so that it is more likely that the interesting data is next to each other and thus in CPU cache (i.e. the control fields and the first few elements of the array) Change-Id: I50e46df3f639899e39f1b7733cf8e754d2435b4d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124038 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/bparr.hxx')
-rw-r--r--sw/inc/bparr.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/bparr.hxx b/sw/inc/bparr.hxx
index f4c1c47d6da1..c9bc8d041ab1 100644
--- a/sw/inc/bparr.hxx
+++ b/sw/inc/bparr.hxx
@@ -57,10 +57,10 @@ public:
struct BlockInfo final
{
BigPtrArray* pBigArr; ///< in this array the block is located
- std::array<BigPtrEntry*, MAXENTRY>
- mvData; ///< data block
sal_Int32 nStart, nEnd; ///< start- and end index
sal_uInt16 nElem; ///< number of elements
+ std::array<BigPtrEntry*, MAXENTRY>
+ mvData; ///< data block
};
class SW_DLLPUBLIC BigPtrArray