Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

reduce dependency on wwIPstuff.dll

$
0
0
reduce dependency on wwIPstuff.dll
Web Connection Wishlist
reduce dependency on wwIPstuff.dll
Mar. 18, 2013
04:32 am
3QO09QTDAShow this entire thread in new window
Gratar Image based on email address
From:Thierry Nivelet (FoxInCloud)
To:Rick Strahl

we can't get rid of it.

My suggestion was more like having a fallback when wwIPstuff.dll can't be easily distributed with a VFP client app.

Of course wwIPstuff.dll is mandatory to have good response time.
At least we could have something working also in case we don't have it available.

We could add an ASSERT in case wwIPstuff.dll is not available and string exceeds a given length.

We can't do that because this is used extensively for POST data. If you have a large POST buffer VFP's performance is absolutely terrible. The wwIPStuff code is there because it faster by orders of magnitude minus the small overhead of the API call. In testing I did a long while back the breakeven point is around 250 characters - after that wwIpStuff is faster - for buffers over a a couple of k it's twice as fast, for buffers of 10k it's an order of magnitude faster.

So - the short answer is we can't get rid of it.

+++ Rick ---



Hi,

Suggestion to make URLdecode() and URLencode() work without wwIPStuff.dll

************************************************************************FUNCTION URLDecode****************** *** Function: URLDecodes a text string to normal text. *** Assume: Uses wwIPStuff.dll *** Pass: lcText - Text string to decode *** llUtf8Decode - Decodes from UTF-8 *** Return: Decoded string or "" ************************************************************************LPARAMETERS lcText,llUtf8DecodeLOCAL lnSize, lnLoc, lcHex, lnHex, lcRetval, loEval, loRegEx loRegEx = GetRegExObject() *** Use wwIPStuff for large buffersIFLEN(lcText) > 255; AND File('wwIPStuff.dll') && added ...




Viewing all articles
Browse latest Browse all 10393

Latest Images

Trending Articles



Latest Images