You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IntType is implementation of a concept to make a fixed-size int that behaves similarly to real int, so it's useful for reimplementation of code written in C language. It's natural that they're slower than native implementation, but current implementation is insanely slow because each operation creates new IntType object.
Each object initialization also comes with cutting value to the expected bitness.
IntType is implementation of a concept to make a fixed-size int that behaves similarly to real
int
, so it's useful for reimplementation of code written in C language. It's natural that they're slower than native implementation, but current implementation is insanely slow because each operation creates new IntType object.Each object initialization also comes with cutting value to the expected bitness.
malduck/malduck/ints.py
Line 166 in 1f6ce66
In the same time, base class of IntType is
int
which is immutable type.Proposed solution is:
int
ctypes.c_int
works faster than applying mask for each operation that could be overflowing.The text was updated successfully, but these errors were encountered: