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

Massive speedup in analyze_macros #810

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Rafiot
Copy link
Contributor

@Rafiot Rafiot commented Mar 14, 2023

Processing the same file went from 50s to 7s.

Processing the same file went from 50s to 7s.
@Rafiot
Copy link
Contributor Author

Rafiot commented Mar 14, 2023

It seems there are a few other calls at other places in this file. If you want me to have a look and change them in a similar way, let me know.

@decalage2
Copy link
Owner

Is it really making such a huge difference? Wow.
I guess your sample is a very large file, or it has a lot of forms. Is it possible to share it for testing?

@Rafiot
Copy link
Contributor Author

Rafiot commented Mar 16, 2023

Yeah, I was quite surprised too, but also concatenating strings with + is known to be extremely slow.

And sadly, I cannot share the file, sorry, it comes from an internal phishing campaign from a third party. But I can tell you that it is a 1.8Mb word document with macros (obvs). So pretty big yes.

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

Successfully merging this pull request may close these issues.

None yet

2 participants