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

Issue 4129047: Optimize beam scoring. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 3 months ago by hanwenn
Modified:
13 years, 2 months ago
CC:
lilypond-devel_gnu.org, mike_apollinemike.com, c_sorensen
Visibility:
Public.

Description

Optimize beam scoring. Use a priority queue of scores. This allows us to drop the arbitrary reasonable_score threshold. On morgenlied.ly, this reduces the number of scoring passes from 13.5k to 10.7k.

Patch Set 1 #

Patch Set 2 : return config in force_score #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -60 lines) Patch
M lily/beam-quanting.cc View 1 6 chunks +92 lines, -57 lines 1 comment Download
M lily/include/beam-scoring-problem.hh View 4 chunks +8 lines, -3 lines 0 comments Download

Messages

Total messages: 4
hanwenn
Please review.
13 years, 3 months ago (2011-02-03 02:40:02 UTC) #1
hanwenn
regtest is clean. On Thu, Feb 3, 2011 at 12:40 AM, <hanwenn@gmail.com> wrote: > Reviewers: ...
13 years, 3 months ago (2011-02-03 02:44:25 UTC) #2
Graham Percival (old account)
I can confirm the clean regtest. http://codereview.appspot.com/4129047/diff/1003/lily/beam-quanting.cc File lily/beam-quanting.cc (left): http://codereview.appspot.com/4129047/diff/1003/lily/beam-quanting.cc#oldcode249 lily/beam-quanting.cc:249: scores->clear (); I ...
13 years, 3 months ago (2011-02-03 16:03:21 UTC) #3
hanwenn
13 years, 3 months ago (2011-02-04 00:19:34 UTC) #4
On Thu, Feb 3, 2011 at 2:03 PM,  <percival.music.ca@gmail.com> wrote:
>
http://codereview.appspot.com/4129047/diff/1003/lily/beam-quanting.cc#oldcode249
> lily/beam-quanting.cc:249: scores->clear ();
> I have absolutely no knowledge of this code or algorithm, but are you
> certain you want to delete this line?

It doesn't really make a difference.  The function is called with an
empty vector anyway.

-- 
Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen
Sign in to reply to this message.

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