Closed kr0st closed 6 years ago
Tested performance of the compare function + std::sort approach: ~3 seconds to sort 1000 strings, ~41 seconds to sort 10000 strings on i7 CPU, single thread. Approach considered failed.
Well, it is pretty much a disaster: large strings were not even tested, performance is awful even on small strings. Sorted 1000 strings using ChaiScript in 79006 ms. Even to simply convert 1000 strings from json takes about 500-1000ms.
So, there will be no sorting with ChaiScript.
Pay special attention to huge json messages (containing base64 binary information) of several megs in size. Need to check how ChaiScript handles these.