Thrill
0.1
|
As Thrill is written in C++, one can draw from the vast universe of libraries available to C/C++ programs. Inside Map() lambda methods one can do just about anything.
As a simple example, we will show how to improve the parser using Boost.Spirit's Qi. Qi is a parser generator using C++ meta-template programming to generate highly optimized parsers. The problem with std::istringstream
is that it uses way to many allocations and internal facet function calls to just parse two doubles.
The example above will generate a parser inline in the .Map() lambda which parses the input string directly into the Point
struct.
See the complete example code examples/tutorial/k-means_step6.cpp