Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1377)

Issue 346080043: Issue 5344: Avoid repeated calculation of accepted contexts (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
5 years, 10 months ago by Dan Eble
Modified:
5 years, 10 months ago
Reviewers:
dak
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

https://sourceforge.net/p/testlilyissues/issues/5344/ 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. The aspect of this change most in need of review is probably garbage collection. Thanks in advance.

Patch Set 1 #

Total comments: 7

Patch Set 2 : Stop uniquifying \accepts; clarify copying #

Patch Set 3 : test that \with \denies ... has local effect #

Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -125 lines) Patch
A input/regression/context-denies-nondestructive-mod.ly View 1 2 1 chunk +36 lines, -0 lines 0 comments Download
A lily/acceptance-set.cc View 1 1 chunk +62 lines, -0 lines 0 comments Download
M lily/context.cc View 4 chunks +6 lines, -36 lines 0 comments Download
M lily/context-def.cc View 1 14 chunks +38 lines, -80 lines 0 comments Download
M lily/global-context.cc View 1 chunk +1 line, -2 lines 0 comments Download
A lily/include/acceptance-set.hh View 1 1 chunk +76 lines, -0 lines 0 comments Download
M lily/include/context.hh View 3 chunks +2 lines, -3 lines 0 comments Download
M lily/include/context-def.hh View 2 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 10
dak
https://codereview.appspot.com/346080043/diff/1/lily/acceptance-set.cc File lily/acceptance-set.cc (right): https://codereview.appspot.com/346080043/diff/1/lily/acceptance-set.cc#newcode34 lily/acceptance-set.cc:34: if (!scm_is_null (default_)) Why do you prioritize the default ...
5 years, 10 months ago (2018-06-14 22:53:58 UTC) #1
Dan Eble
Thank you for your review. I disagree with some of your conclusions. https://codereview.appspot.com/346080043/diff/1/lily/acceptance-set.cc File lily/acceptance-set.cc ...
5 years, 10 months ago (2018-06-15 02:36:40 UTC) #2
Dan Eble
https://codereview.appspot.com/346080043/diff/1/lily/acceptance-set.cc File lily/acceptance-set.cc (right): https://codereview.appspot.com/346080043/diff/1/lily/acceptance-set.cc#newcode50 lily/acceptance-set.cc:50: accepted_ = scm_cons(item, scm_delete_x (item, accepted_)); On 2018/06/15 02:36:40, ...
5 years, 10 months ago (2018-06-16 12:34:16 UTC) #3
Dan Eble
Stop uniquifying \accepts; clarify copying
5 years, 10 months ago (2018-06-17 12:52:01 UTC) #4
Dan Eble
On 2018/06/17 12:52:01, Dan Eble wrote: > Stop uniquifying \accepts; clarify copying I also spent ...
5 years, 10 months ago (2018-06-17 13:27:39 UTC) #5
dak
On 2018/06/17 13:27:39, Dan Eble wrote: > On 2018/06/17 12:52:01, Dan Eble wrote: > > ...
5 years, 10 months ago (2018-06-17 13:52:55 UTC) #6
Dan Eble
test that \with \denies ... has local effect
5 years, 10 months ago (2018-06-17 17:51:34 UTC) #7
Dan Eble
On 2018/06/17 17:51:34, Dan Eble wrote: > test that \with \denies ... has local effect ...
5 years, 10 months ago (2018-06-17 17:56:06 UTC) #8
dak
On 2018/06/17 17:56:06, Dan Eble wrote: > On 2018/06/17 17:51:34, Dan Eble wrote: > > ...
5 years, 10 months ago (2018-06-17 18:13:20 UTC) #9
Dan Eble
5 years, 10 months ago (2018-06-17 18:47:54 UTC) #10
On 2018/06/17 18:13:20, dak wrote:
>
> I must be getting senile.  I didn't spot where you make the copy.

In fairness, the copy was not as obvious in patch set 1, though that's not proof
you're not getting senile.  :D
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b