diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2025-06-20 16:46:38 -0700 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2025-10-18 08:25:21 -0700 |
| commit | 47c729f7b3102ee22b904dce94b2e6b533d83998 (patch) | |
| tree | fb1747dd0f28ba96c53268a5d78ba75f374c4aff /src/corelib/kernel/qtimer.cpp | |
| parent | 292c6246514eff2c123b4eba2b8f701ce137ba42 (diff) | |
QArrayDataOps::assign: simplify undoing the prepend optim. for trivials
Since they are trivial, we don't need to loop destroying anything (dead
code anyway), so help the compiler out and always store the new capacity
begin. This may be storing the value that was already there if no
element was removed from the beginning of the list, but it does remove a
conditional.
Further, this removes the entire looping over the prepend optimization
buffer for new elements. We'll fall straight to the main assignment
loop.
Change-Id: I5338b6a53bffbda17a08fffd1d7eda72d57eff29
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/kernel/qtimer.cpp')
0 files changed, 0 insertions, 0 deletions
