diff options
author | Ivan Komissarov <abbapoh@gmail.com> | 2024-06-09 04:57:21 +0300 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2024-06-22 08:24:06 +0000 |
commit | de120e2d73ea6ef51d06c3ee13252e2fcc1e2355 (patch) | |
tree | 6737bcfea10e636584ba0bdf411ea0e061ace29d /src/shared/quickjs/quickjs.qbs | |
parent | e559e22d597938ab8a572bc5af77d64aedc3f7dc (diff) |
CodeLocation constructor allocates d-ptr. This leads
to an extra allocation e.g. in JSSourceValue::location
which is called from convertToPropertyType for every
property evaluation.
While this is a micro-optmisation, it costs nothing
and allows to save several cycles.
========== Performance data for Resolving ==========
Old instruction count: 10333610929
New instruction count: 10317226688
Relative change: -1 %
Old peak memory usage: 111397280 Bytes
New peak memory usage: 111657280 Bytes
Relative change: 0 %
Change-Id: If531d195fa653a95dd2ad750555c13ae27d38453
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/shared/quickjs/quickjs.qbs')
0 files changed, 0 insertions, 0 deletions