Hypnootika

Results 32 comments of Hypnootika

Ok, turns out that "k" isnt getting evaluated correctly on Windows 64bit. I think you found that out already. Changing the Code to : ```static PyObject * py_LM_ReadMemory(PyObject *self, PyObject...

Well, yes. I guess 50% of the performance deficit is more a bad (and repetitive) implementation. I had exceptional results with reading. But as soon as it comes to writing...

But also there is ctypes with support if C-structs and arrays of them and I wonder if there is any benefits of utilizing them. Well, I didnt touch ctypes anymore...

So, i prepared some (hopefully comparable) approaches. If someone wanna play around with it: ```import io import mmap import time from abc import ABC, abstractmethod from ctypes import * from...

Yes, i understood later. I played around with following approach. That should do exactly what you mean: ``` class HeaderHandlerOptimized(MmapHandler): def __init__(self, file_path, mode='r'): super().__init__(file_path, mode) # Define the byte...

```# Function to measure time taken by using memoryview for handling the header def measure_memoryview_handler(): start = time.time() # Load the binary data into a memoryview with open('header_data_large.bin', 'rb') as...

> > Well, I didnt touch ctypes anymore because it has no "proper" (convenient) way of handling endianess > > Handling endianness is simple, if we assumme there are only...