aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/buildgraph/transformer.cpp
diff options
context:
space:
mode:
authorIvan Komissarov <abbapoh@gmail.com>2024-06-09 04:57:21 +0300
committerIvan Komissarov <ABBAPOH@gmail.com>2024-06-22 08:24:06 +0000
commitde120e2d73ea6ef51d06c3ee13252e2fcc1e2355 (patch)
tree6737bcfea10e636584ba0bdf411ea0e061ace29d /src/lib/corelib/buildgraph/transformer.cpp
parente559e22d597938ab8a572bc5af77d64aedc3f7dc (diff)
Make CodeLocation inlineHEADmaster
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/lib/corelib/buildgraph/transformer.cpp')
0 files changed, 0 insertions, 0 deletions