About criteria of "expensive pass by value"

1 回表示 (過去 30 日間)
종헌 이
종헌 이 2023 年 6 月 1 日
回答済み: Luke Halberstadt 2023 年 6 月 2 日
Hi, there.
Cant I set the criteria of "expensive pass by value"?
when I write the code... sometimes I use structure instead pointer of structure. The size of structure is 13 bytes..
But Bug finer got ths line which has to be correted...(expensive pass by value)
I want to set the criteria about this item.
Can I set this item?
  3 件のコメント
Angelo Yeo
Angelo Yeo 2023 年 6 月 1 日
Maybe the question is of Polyspace Bug Finder?
종헌 이
종헌 이 2023 年 6 月 1 日
Yep. :)

サインインしてコメントする。

回答 (1 件)

Luke Halberstadt
Luke Halberstadt 2023 年 6 月 2 日
In general, it is not expected that every Bug Finder result must be fixed. My recommendation would be to review the defect using a status such as "No Action Planned" and add a comment to the effect that "13 bytes is not worth optimizing to pass by reference unless we encounter performance issues later when calling this function".
I believe there is not currently a way to set a minimum byte threshold (e.g. 16 bytes) for the expensive pass by value checker.
If you would like to request this as a feature, please contact our Technical Support here:

製品


リリース

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by