Browse Source

Config option for bufferobject support

cyclic-jx-gh331
Sami Vaarala 9 years ago
parent
commit
28090933e7
  1. 9
      config/config-options/DUK_USE_BUFFEROBJECT_SUPPORT.yaml
  2. 1
      config/config-options/DUK_USE_JSON_DEC_RECLIMIT.yaml
  3. 3
      config/examples/disable_bufferobjects.yaml
  4. 6
      config/examples/low_memory.yaml

9
config/config-options/DUK_USE_BUFFEROBJECT_SUPPORT.yaml

@ -0,0 +1,9 @@
define: DUK_USE_BUFFEROBJECT_SUPPORT
introduced: 1.3.0
default: true
tags:
- ecmascript6
description: >
Enable support for Khronos/ES6 typed arrays and Node.js Buffer objects.
This adds about 8-9 kB of code footprint on x64. When disabled, Duktape
custom plain buffers and Duktape.Buffer are still supported.

1
config/config-options/DUK_USE_JSON_DEC_RECLIMIT.yaml

@ -6,4 +6,3 @@ tags:
- cstackdepth - cstackdepth
description: > description: >
Maximum native stack recursion for JSON decoding. Maximum native stack recursion for JSON decoding.

3
config/examples/disable_bufferobjects.yaml

@ -0,0 +1,3 @@
# Disable support for typed arrays and Node.js Buffer. Duktape will still
# support plain buffers and Duktape.Buffer.
DUK_USE_BUFFEROBJECT_SUPPORT: false

6
config/examples/low_memory.yaml

@ -31,6 +31,10 @@ DUK_USE_STRTAB_CHAIN: true
DUK_USE_STRTAB_PROBE: false DUK_USE_STRTAB_PROBE: false
DUK_USE_STRTAB_CHAIN_SIZE: 128 DUK_USE_STRTAB_CHAIN_SIZE: 128
# Consider to reduce code footprint at the expense of more errati RAM usage # Consider removing Node.js Buffer and Khronos/ES6 typed array support if not
# needed (about 8-9 kB code footprint difference on x64)
#DUK_USE_BUFFEROBJECT_SUPPORT: false
# Consider to reduce code footprint at the expense of more erratic RAM usage
#DUK_USE_REFERENCE_COUNTING: false #DUK_USE_REFERENCE_COUNTING: false
#DUK_USE_DOUBLE_LINKED_LIST: false #DUK_USE_DOUBLE_LINKED_LIST: false

Loading…
Cancel
Save