Apr 08
James Harvard Lasso 8 - optimised encode_json tag
Apr 08, 2014; 17:01
James Harvard
Lasso 8 - optimised encode_json tag
.... or 'optimized', I suppose, if you're West of the Atlantic :-)
Anyway, I found encode_json was really slow when encoding a decent sized array of maps (output JSON aprox 125k), so I did some work on it and my modified version is >2x faster for the data I was using it with. I've submitted it as a feature request to Rhinotrac: http://www.lassosoft.com/rhinotrac?id=7750
Warning: on my test data my modified tag produced the same result as the LassoSoft one, but I haven't tested this all that extensively. Use at your own risk! I plan to replace the built-in encode_json, but if you want to run it as encode_json2 for example, don't forget to find & replace all the internal, recursive calls to encode_json.
Any further ideas for optimisation (within LassoScript, ie without using some external C or Java library) would be welcome, and could perhaps be submitted as comments to the Rhinotrac article.
James
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Apr 08
Steve Upton Re: Lasso 8 - optimised encode_json tag
Apr 08, 2014; 11:27
Steve Upton
Re: Lasso 8 - optimised encode_json tag
Apr 08
Fletcher Sandbeck Re: Lasso 8 - optimised encode_json tag
Apr 08, 2014; 11:49
Fletcher Sandbeck
Re: Lasso 8 - optimised encode_json tag
Apr 08
James Harvard Re: Lasso 8 - optimised encode_json tag
Apr 08, 2014; 23:49
James Harvard
Re: Lasso 8 - optimised encode_json tag
Apr 09
Rick Draper RE: Lasso 8 - optimised encode_json tag
Apr 09, 2014; 08:51
Rick Draper
RE: Lasso 8 - optimised encode_json tag
Apr 09
Ke Carlton Re: Lasso 8 - optimised encode_json tag
Apr 09, 2014; 10:59
Ke Carlton
Re: Lasso 8 - optimised encode_json tag
Apr 09
James Harvard Re: Lasso 8 - optimised encode_json tag
Apr 09, 2014; 01:33
James Harvard
Re: Lasso 8 - optimised encode_json tag
Apr 08
Brad Lindsay Re: Lasso 8 - optimised encode_json tag
Apr 08, 2014; 20:35
Brad Lindsay
Re: Lasso 8 - optimised encode_json tag
Apr 09
Ke Carlton Re: Lasso 8 - optimised encode_json tag
Apr 09, 2014; 12:59
Ke Carlton
Re: Lasso 8 - optimised encode_json tag
Apr 09
James Harvard Re: Lasso 8 - optimised encode_json tag
Apr 09, 2014; 02:12
James Harvard
Re: Lasso 8 - optimised encode_json tag