mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-25 20:41:49 +03:00
align ThreadedRegexVM::Thread to permit fused copy optimization
Aligning makes gcc able to copy a Thread object with a single 32bit mov instruction instead of two 16bits one.
This commit is contained in:
parent
05a9eb62f4
commit
7f83c41256
@ -286,7 +286,7 @@ private:
|
||||
--saves.refcount;
|
||||
};
|
||||
|
||||
struct Thread
|
||||
struct alignas(int32_t) Thread
|
||||
{
|
||||
int16_t inst;
|
||||
int16_t saves;
|
||||
|
Loading…
Reference in New Issue
Block a user