Reorder ScFormulaCell members
commit1fb3d85aa855f57c3a4b32819d0acd9a378bd97c
authorDennis Francis <dennis.francis@collabora.co.uk>
Thu, 8 Nov 2018 05:08:07 +0000 (8 10:38 +0530)
committerDennis Francis <dennis.francis@collabora.com>
Wed, 14 Nov 2018 14:50:26 +0000 (14 15:50 +0100)
treec509d32f0e5d625d0a7e99dcbcc0bd85f97362cd
parent7374b8aceba8e7f6a89982844bcdc3a861bf0b49
Reorder ScFormulaCell members

When evaluating/getting result from a formulacell(which
has been evaluated before), first bDirty/bTableOpDirty
are accessed from MaybeInterpret()/NeedsInterpret(), then
aResult is accessed, so it makes sense to put the first
7 bools(with bDirty/bTableOpDirty) in the beginning, then
aResult, then rest of bools and other remaining members. The
expectation is that when bDirty is accessed in NeedsInterpret(),
the relevant contents of aResult is also fetched to cache
and remains there till aResult is needed.

Change-Id: Ide0d1e809ca045ef347520f26c4d3ab9faa994bb
Reviewed-on: https://gerrit.libreoffice.org/63065
Tested-by: Jenkins
Reviewed-by: Dennis Francis <dennis.francis@collabora.com>
sc/inc/formulacell.hxx
sc/source/core/data/formulacell.cxx