Skip to content

Commit 94565b4

Browse files
authored
Improve performance on struct.unpack (#1817)
* Improve performance on struct * Fix some struct issues * Remove array overloads * Clean up unpack_iterator * Fix packaging on .NET 9 SDK
1 parent 74ba84d commit 94565b4

File tree

6 files changed

+121
-170
lines changed

6 files changed

+121
-170
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121

122122
<!-- Release -->
123123
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
124-
<DebugSymbols>false</DebugSymbols>
124+
<DebugSymbols>true</DebugSymbols>
125125
<DebugType>portable</DebugType>
126126
<Optimize>true</Optimize>
127127
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>

Src/IronPython.Modules/_ctypes/_ctypes.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -688,10 +688,6 @@ private static IntPtr GetHandleFromObject(object dll, string errorMsg) {
688688
return intPtrHandle;
689689
}
690690

691-
private static void ValidateArraySizes(ArrayModule.array array, int offset, int size) {
692-
ValidateArraySizes(array.__len__() * array.itemsize, offset, size);
693-
}
694-
695691
private static void ValidateArraySizes(int arraySize, int offset, int size) {
696692
if (offset < 0) {
697693
throw PythonOps.ValueError("offset cannot be negative");

0 commit comments

Comments
 (0)