crash.software
Projects
Pull Requests
Issues
Builds
LIEF
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
LIEF
Commits
3f2e9891
🤬
Sign In
Fix performance issue: unwanted copy
Resolve
#1022
Romain Thomas
committed
3 months ago
3f2e9891
1 parent
14f058ee
Total 1 files
■ ■ ■
■
■ ■
api/python/src/pyIterator.hpp
skipped 72 lines
73
73
if (v == std::end(v)) {
74
74
throw nb::stop_iteration();
75
75
}
76
-
return *(v++);
76
+
auto& value = *v;
77
+
++v;
78
+
return value;
77
79
}, nb::rv_policy::reference_internal);
78
80
}
79
81
}
skipped 3 lines
All occurrences
Please wait...
Page is in error, reload to recover