forked from jckarter/clay
-
Notifications
You must be signed in to change notification settings - Fork 0
jckarter edited this page Jan 26, 2012
·
20 revisions
-
Benchmarks are slower than equivalent C or C++ code
Clay's library includes bounds check and integer overflow assertions by default, which adds about 10% overhead in typical code. Make sure you test with
-Dclay.DisableAssertionsto disable all assertions, or-Dclay.DisableAssertions.boundsChecks -Dclay.DisableAssertions.overflowChecksto disable only bounds and overflow check assertions, to get a fair comparison.
-
How do I build a debug version of Clay?
When running cmake, set the
CMAKE_BUILD_TYPEattribute:cmake -DCMAKE_BUILD_TYPE=Debug .. -
Clay complains about parser errors on
/*tokensOlder versions of GCC have a compiler bug that breaks Clay's parser. Try updating your GCC, or using Clang.