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
dee8ad2d
🤬
Sign In
Fix performance issue: unwanted copy
Resolve
#1022
Romain Thomas
committed
3 months ago
dee8ad2d
1 parent
480b9257
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