Commit Graph
12 Commits
Author SHA1 Message Date
Nigel Tao ccee207661 Change example/imageviewer from C to C++ 2021-02-27 22:40:32 +11:00
Nigel Tao 4cb6cc5a0d Fix missing echo for building example/jsonfindptrs 2020-09-04 09:26:09 +10:00
Nigel Tao 5396dbd17d Have jsonfindptrs use C++17's std::variant
On a mid-range x86_64 laptop, processing the 181 MiB citylots.json file
from github.com/zemirco/sf-city-lots-json:

$ time gen/bin/example-jsonfindptrs < citylots.json > /dev/null
Before this commit:
real    0m7.333s
After:
real    0m5.970s
Ratio: 1.23x

Using "/usr/bin/time -v" instead of "time"
Before this commit:
Maximum resident set size (kbytes): 2556992
After:
Maximum resident set size (kbytes): 1214812
Ratio: 2.10x
2020-08-29 22:23:15 +10:00
Nigel Tao cf8884d44c Rename example/library to example/toy-genlib 2020-08-05 11:55:51 +10:00
Nigel Tao 1b07349144 Add example/jsonptr 2020-02-16 22:19:12 +11:00
Nigel Tao 8f1fe43abf Add example/imageviewer 2020-01-16 11:42:52 +11:00
Nigel Tao b2d598aac5 Add $CC and $CXX variables to build-*.sh 2018-12-26 12:38:15 +11:00
Nigel Tao 04c91f1410 Generate .c files instead of .h files
The files' contents haven't changed (other than some relative #include's
that refer to other .c files).

Some build systems have difficulty recognizing .h files as things to be
compiled, instead of just things referred to by things to be compiled.
2018-12-22 15:29:00 +11:00
Nigel Tao 10ae70448f Let build scripts take "example/*" arguments 2018-08-18 12:13:36 +10:00
Nigel Tao fce793776c Have build-example run 'out of the box' 2018-08-05 22:36:37 +10:00
Nigel Tao 845ffbeb86 Have build-example.sh build with -O3 2018-08-05 22:24:03 +10:00
Nigel Tao 4c1826ac8e Factor build-all.sh into smaller scripts 2018-08-05 21:55:50 +10:00