Avoid repeated calculation of accepted contexts
Encapsulate the list of accepted contexts into Acceptance_set, which
is owned by both Context_def and Context. The merging of context mods
that used to occur anew for every path_to_acceptable_context () call
now occurs once when a context is instantiated.
Diff:
Stop uniquifying \accepts; clarify copying
http://codereview.appspot.com/346080043
James, when you run
make check, it would be interesting to know whether there are any differences in the profiling results. When I ranmake checkmyself, the results showed 3 cases with a reduction in cell count above the threshold distance. I don't remake my test baseline very frequently, though.Dan,
Sorry I didn't spot this until later. I'll re-run the test and let you know.
test that \with \denies ... has local effect
http://codereview.appspot.com/346080043
Passes make, make check and a full make doc
Dan, test results here:
https://cloud.indie.host/s/iMYNwKodaWDxCjY
Patch on countdown for June 22.
Patch counted down, please push.
commit a358ea26328939acdcfb0f08f307bb1c3b076915 (HEAD -> pushed/issue-5344-context-acceptance-set, origin/staging)
Author: Dan Eble nine.fierce.ballads@gmail.com
Date: Sat May 26 19:44:26 2018 -0400