summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-10 18:57:04 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-10 19:37:44 -0300
commitcbb9905ad78032f8e819250e5ab72bfa07e34181 (patch)
tree5e8809886ccd29dbb41663d7f5eb5379f8ff114d /main.c
parent6cb5efd7dd1705fdffd21e4581b73d0415feaf29 (diff)
downloadeeshow-cbb9905ad78032f8e819250e5ab72bfa07e34181.tar.gz
eeshow-cbb9905ad78032f8e819250e5ab72bfa07e34181.tar.bz2
eeshow-cbb9905ad78032f8e819250e5ab72bfa07e34181.zip
eeshow/: simple caching of sheets
We only reuse previous sheets if ... - they have no sub-sheets, and - all the libraries are identical. This reduces the -N-150 time from 8.3 s (caching only libraries) to 4.3 s. Since we only need to know whether there are sub-sheets, but not what exactly they are, we can also partially undo the previous commit, 77c0e075907a0dc97712c10ed63442da4168bd0c
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index e678df6..841cbf7 100644
--- a/main.c
+++ b/main.c
@@ -215,7 +215,7 @@ found:
optind = 0; /* reset getopt */
- if (!sch_parse(&sch_ctx, &sch_file, &lib))
+ if (!sch_parse(&sch_ctx, &sch_file, &lib, NULL))
return 1;
file_close(&sch_file);