In cmake it’s enough to specify -DCMAKE_BUILD_TYPE=Release
, which I think translates to -O3
(-O2
would be sufficient too). Note that the 4x is for RDF code that spends most of its time within just-in-time compiled code vs RDF code that spend most of its time within code compiled with optimizations. See e.g. here. As per the RDF docs, expression strings are handy but they have a performance penalty.