Main Content

Reuse buffers for Data Store Read and Data Store Write blocks

Description

Remove temporary buffers for Data Store Read and Data Store Write blocks. Use the Data Store Memory block directly if possible.

Category: Optimization

Settings

Default: On

On

Embedded Coder® reads directly from the Data Store Memory block and writes directly to the Data Store Memory block, if possible. Using the Data Store Memory block directly eliminates data copies in the generated code, conserving RAM consumption and increasing code execution speed.

Off

Embedded Coder inserts buffers in the generated code for Data Store Read and Data Store Write blocks.

Dependency

  • The parameter Signal Storage Reuse enables this parameter.

  • This parameter requires an Embedded Coder license.

  • This parameter appears only for ERT-based targets.

Command-Line Information

Parameter: OptimizeDataStoreBuffers
Value: 'on' | 'off'
Default: 'on'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityOff
EfficiencyOn
Safety precaution

No recommendation

Related Topics