Genii Weblog
Short agents
Wed 14 Nov 2018, 09:41 PM
Tweetby Ben Langhinrichs
Copyright © 2018 Genii Software Ltd.
What has been said:
1100.1. Doug Finner (11/14/2018 12:25 PM)
Ben,
I can't thank you enough for your willingness to give back to the community. I've used your help for much of the time I've been doing Notes and appreciate your expertise and good humor. Thank you!
1100.2. Erik Brooks (11/15/2018 11:53 AM)
Nice, Ben. Though for this to perform well on larger datasets you should use a stringbuffer. This line:
totalstr = totalstr + textstr
...gets brutal fast.
1100.3. Ben Langhinrichs (11/15/2018 02:35 PM)
Erik,
Of course, you are right. This is just a demo. In a real application, I could change the
totalstr = totalstr + textstr
to
Print textstr
or process some other ways. This is good for demos because I can look at the whole JSON string at once. But I should think about making my short agents more production-ready.