Skip to content

Conversation

ideeockus
Copy link

  • Removed collecting files content in memory

  • Read files content by chunks

  • Removed redundant conversions
    e.g. struct.unpack('{}s'.format(self.cbLength), file.read(self.cbLength)) -> file.read(self.cbLength)

  • Added the cli argument --optimize to enable optimized memory mode: no json conversion, no bytes.hex() logging etc

It may be useful when handle large files.

comparison

original:
image

optimized:
image

@DissectMalware
Copy link
Owner

Thank you for your contribution and my apologies for the late response. Will try to review this soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants