CefSharp icon indicating copy to clipboard operation
CefSharp copied to clipboard

ExecuteScript super slow

Open microwishing opened this issue 12 years ago • 4 comments

hi, I called WebView->ExecuteScript to call some javascript function with a string as parameter.

when the string size is > 3M, the cef crashed. is there anyone coming to the same problem? how should we fix it?

thanks

microwishing avatar Jul 18 '14 20:07 microwishing

Can you confirm the version of CefSharp your using?

amaitland avatar Jul 19 '14 03:07 amaitland

CefSharp-1.25.7. do you need any other info?

microwishing avatar Jul 19 '14 20:07 microwishing

@microwishing Are you using Javascript binding or simply ExecuteScript? As CefSharp1 is in maintenance mode, active development has pretty much stopped. If your not using Javascript binding then I'd suggest you upgrade to CefSharp3, whilst there has yet to be an official release, the master branch is quite stable and under active development, so any issues you have going forward are more likely to be resolved.

If your stuck using 1.25.7, then your more than welcome to investigate the issue and submit a PR.

Out of curiosity what sort of javascript is greater than 3M in size? If your simply doing a get text or view source then CefSharp3 has native features for those.

amaitland avatar Jul 20 '14 04:07 amaitland

For a CefSharp3 release that includes JS Binding please see our latest nuget package 33.1.0-pre01.

More info can be found here #480

amaitland avatar Oct 13 '14 02:10 amaitland