重用数据存储读取和 Data Store Write 模块的缓冲区
消除数据存储读取和 Data Store Write 模块的临时缓冲区
模型配置窗格: 代码生成 / 优化
描述
重用 Data Store Read 和 Data Store Write 模块的缓冲区参数指示代码生成器删除 Data Store Read 和 Data Store Write 模块的临时缓冲区。如果可能的话直接使用 Data Store Memory 模块。
依赖关系
参数信号存储重用会启用此参数。
设置
on (默认) | off- On
如果可能的话,Embedded Coder® 直接从 Data Store Memory 模块读取并直接写入 Data Store Memory 模块。使用 Data Store Memory 模块直接消除了生成代码中的数据复制,节省了 RAM 消耗并提高了代码执行速度。
- Off
Embedded Coder 在生成的代码中为 Data Store Read 和 Data Store Write 模块插入缓冲区。
推荐的设置
| 应用情形 | 设置 |
|---|---|
| 调试 | 无影响 |
| 可追溯性 | Off |
| 效率 | On |
| 安全预警 | 无建议 |
编程用法
参数:OptimizeDataStoreBuffers |
| 类型:字符向量 |
值: 'on' | 'off' |
默认值:'on' |
版本历史记录
在 R2017a 中推出