summaryrefslogtreecommitdiff
path: root/diff.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 /diff.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 'diff.c')
-rw-r--r--diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff.c b/diff.c
index bda0f08..4dca702 100644
--- a/diff.c
+++ b/diff.c
@@ -161,7 +161,7 @@ static void *diff_init(int argc, char *const *argv)
for (arg = optind; arg != argc - 1; arg++)
if (!lib_parse(&new_lib, argv[arg], &sch_file))
goto fail_parse;
- if (!sch_parse(&new_sch, &sch_file, &new_lib))
+ if (!sch_parse(&new_sch, &sch_file, &new_lib, NULL))
goto fail_parse;
file_close(&sch_file);