File: performance_sensitive.yaml

package info (click to toggle)
duktape 2.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 21,160 kB
  • sloc: ansic: 215,359; python: 5,961; javascript: 4,555; makefile: 477; cpp: 205
file content (38 lines) | stat: -rw-r--r-- 1,357 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Base configuration for performance sensitive environments, see
# doc/performance-sensitive.rst.

# You should choose the fastest setjmp/longjmp for your platform.

# With the vast majority of compilers some of the 'undefined behavior'
# assumptions are fine, and produce smaller and faster code, so enable
# by default for performance oriented targets.  You may need to disable
# this for some compilers.
DUK_USE_ALLOW_UNDEFINED_BEHAVIOR: true

DUK_USE_PREFER_SIZE: false
DUK_USE_PACKED_TVAL: false  # packed duk_tval slower in most cases
DUK_USE_FASTINT: true
DUK_USE_VALSTACK_UNSAFE: true
DUK_USE_FAST_REFCOUNT_DEFAULT: true

DUK_USE_JSON_STRINGIFY_FASTPATH: true  # not fully portable right now
DUK_USE_JSON_QUOTESTRING_FASTPATH: true
DUK_USE_JSON_DECSTRING_FASTPATH: true
DUK_USE_JSON_DECNUMBER_FASTPATH: true
DUK_USE_JSON_EATWHITE_FASTPATH: true
DUK_USE_BASE64_FASTPATH: true
DUK_USE_HEX_FASTPATH: true
DUK_USE_IDCHAR_FASTPATH: true
DUK_USE_ARRAY_PROP_FASTPATH: true
DUK_USE_ARRAY_FASTPATH: true
DUK_USE_INTERRUPT_COUNTER: false

DUK_USE_DEBUGGER_SUPPORT: false

DUK_USE_STRHASH_DENSE: false
DUK_USE_STRHASH_SKIP_SHIFT: 5  # may be able to reduce
#DUK_USE_EXEC_FUN_LOCAL: false  # test both values, marginal benefit

DUK_USE_LITCACHE_SIZE: 1024

DUK_USE_REGEXP_CANON_WORKAROUND: true  # high footprint impact (128kB), enabled until a better solution