-
Notifications
You must be signed in to change notification settings - Fork 603
ParseJson suddenly very slow #96
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
Comments
I believe I now have the exact same problem. It broke my process dependent on this converter. It must be one of these latest Excel 2017 updates that broke this. This is on Windows side. It appears this pull request addresses the problem. Replaced the code with his code and used the provided clsStringAppend class and all is well again. |
counterpoint1, thank you very much, your solution works very well! |
Same here: suddenly a drastic performance regression. I could reproduce it on multiple machines running either Windows 10 1803 or 1709. I also noticed that during the parsing the Windows Defender (MsMpEng.exe) consumes a full CPU (constant 12% on i7), while the CPU usage for WINWORD.exe remained zero. Applying the mentioned PR resolves the regression. |
@Locke try with this, it works for me |
@rachid-adf That's what I meant with "Applying the mentioned PR resolves the regression" :) |
Hi guys, |
@hlalibe you have just to add the class clsStringAppend.cls in your project |
@rachid-adf |
@hlalibe in your project insert a new Class Module from menu and copy the code into |
ok got it, |
@rachid-adf |
Hi There, @rachid-adf @Locke Could you take a look at the link and let me know whether mine is the same problem as yours... I can't quite decide. Thanks, Duncan |
Hey @rachid-adf, I've been getting "Compile error: Expected: end of statement", while running the class module code you've shared above. |
Hi @iamanubhavp, juste delete all text before Option Explicit, and also delete the rows numbers |
@rachid-adf, I already tried doing that. I think the issue here is with the way I'm running this code. I think I need to import the code .BAS & .cls file. |
@iamanubhavp What version of VBA-JSON are you using? The |
Thanks @timhall , I resolved it by importing .bas & .cls files rather than copy/pasting the code into the modules. |
Hello !!!
the sub ParseJson suddenly became very slow in one computer only (a recent one i7-7 Gen), I didn't change anything in the code, 3 minutes for a little json,
after test I noticed that this row of code takes a long time to execute (a couple of second for each iteration) :
json_CopyMemory ByVal json_UnsignedAdd(StrPtr(json_buffer), json_BufferPosition), ByVal StrPtr(json_Append), json_AppendLength
do you have an idea where this comes from?
The text was updated successfully, but these errors were encountered: