Twelve lines C++ INI parser

TL;DR std::map<std::string, std::map<std::string,std::string>> data; std::string group; for(const auto &line: underscore::file(inifile)){ auto l=line.split('#',true)[0]; if (l.empty()) continue; if (l.startswith("[") && l.endswith("]")) group=l.slice(1,-2); else{ auto p=l.split('=',true); data[group][p[0].strip()]=l.slice(p[0].length()+1,-1).strip(); } } The power of underscore.hpp…

Continue ReadingTwelve lines C++ INI parser

Benchmarking onion

Today a thought provoking benchmark was published at Hacker News: http://www.techempower.com/blog/2013/03/28/framework-benchmarks/. It compares several web frameworks and how they perform. How well does onion perform? I did a fast test program with onion to check…

Continue ReadingBenchmarking onion