Commit 852f090
use std::move(model_proto) to avoid extra copy (microsoft#26372)
Previously, model_proto was passed by name, which triggered a copy
constructor call instead of move construction. Using
std::move(model_proto) ensures that the object is constructed via move
semantics, reducing unnecessary memory allocation and copy overhead.
Co-authored-by: liumingyue <mingyue@xilinx.com>1 parent c6c6d78 commit 852f090
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1239 | 1239 | | |
1240 | 1240 | | |
1241 | 1241 | | |
1242 | | - | |
| 1242 | + | |
1243 | 1243 | | |
1244 | 1244 | | |
1245 | 1245 | | |
| |||
0 commit comments