Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse "Cache records" is slower compared to Nirsoft ChromeCacheView.exe #160

Closed
snowman opened this issue Jan 26, 2024 · 1 comment
Closed

Comments

@snowman
Copy link

snowman commented Jan 26, 2024

Cache records:            [   5650 ]
---
Cost time: 12.328316450119019

while ChromeCacheView.exe takes 1 second

@snowman
Copy link
Author

snowman commented Jan 26, 2024

comment out data parser in file chrome.py make cost time reduce to 0.7346768379211426, credit to cProfile and ChatGPT 🎉🎉

         self.data = []
#        for index in range(4):
#            addr = struct.unpack('I', block.read(4))[0]
#            try:
#                addr = CacheAddress(addr, address.path)
#                self.data.append(CacheData(addr, dataSize[index], True))
#            except CacheAddressError:
#                pass

@snowman snowman closed this as completed Jan 26, 2024
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

No branches or pull requests

1 participant