Merge branch 'dm-reorder'
Chaos Ci / test (push) Successful in 3m18s
Chaos Ci / benchmark (push) Successful in 2m0s

Reorder data members of some entities to mitigate performance issues on
ARM.
This commit is contained in:
hashlag
2026-07-31 02:07:51 +03:00
parent 58fdd3bf5d
commit 8b9b67aa0c
4 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -45,8 +45,8 @@ public:
} }
private: private:
bool IsInitialized_;
Arc4Gen Gen_; Arc4Gen Gen_;
bool IsInitialized_;
void EnsureInitialized() const void EnsureInitialized() const
{ {
+3 -3
View File
@@ -49,11 +49,11 @@ public:
} }
private: private:
bool IsInitialized_; std::array<uint8_t, 256> Lookup_;
uint8_t I_; uint8_t I_;
uint8_t J_; uint8_t J_;
std::array<uint8_t, 256> Lookup_;
bool IsInitialized_;
void EnsureInitialized() const void EnsureInitialized() const
{ {
+6 -6
View File
@@ -54,11 +54,11 @@ public:
private: private:
typename CipherT::Encryptor Encryptor_; typename CipherT::Encryptor Encryptor_;
uint64_t BlockBytesPacked_;
Service::SeArray<uint8_t, CipherT::BlockSize> Block_;
Service::SeArray<uint8_t, CipherT::BlockSize> EncryptedBlock_; Service::SeArray<uint8_t, CipherT::BlockSize> EncryptedBlock_;
Service::SeArray<uint8_t, CipherT::BlockSize> Block_;
uint64_t BlockBytesPacked_;
template<typename OutputIt, typename InputIt> template<typename OutputIt, typename InputIt>
static OutputIt EnsureCopy(OutputIt outBegin, OutputIt outEnd, static OutputIt EnsureCopy(OutputIt outBegin, OutputIt outEnd,
InputIt inBegin, InputIt inEnd) InputIt inBegin, InputIt inEnd)
@@ -169,12 +169,12 @@ public:
typename CipherT::Decryptor Decryptor_; typename CipherT::Decryptor Decryptor_;
uint64_t BlockBytesPacked_;
BlockArray Block_; BlockArray Block_;
bool LastBlockSaved_;
BlockArray LastBlock_; BlockArray LastBlock_;
uint64_t BlockBytesPacked_;
bool LastBlockSaved_;
template<typename OutputIt, typename InputIt> template<typename OutputIt, typename InputIt>
static OutputIt EnsureCopy(OutputIt outBegin, OutputIt outEnd, static OutputIt EnsureCopy(OutputIt outBegin, OutputIt outEnd,
InputIt inBegin, InputIt inEnd) InputIt inBegin, InputIt inEnd)
+3 -3
View File
@@ -60,10 +60,10 @@ private:
static constexpr uint8_t OPAD_BYTE = 0x5c; static constexpr uint8_t OPAD_BYTE = 0x5c;
static constexpr uint8_t IPAD_BYTE = 0x36; static constexpr uint8_t IPAD_BYTE = 0x36;
bool IsInitialized_;
KeyType Key_;
HasherImpl Hasher_; HasherImpl Hasher_;
KeyType Key_;
bool IsInitialized_;
void EnsureInitialized() const void EnsureInitialized() const
{ {