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

Issue 575990043: Rewrite Mutable_properties based on vector<SCM>

Can't Edit
Can't Publish+Mail
Start Review
Created:
4 years ago by hanwenn
Modified:
4 years ago
Reviewers:
dak, hahnjo
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Rewrite Mutable_properties based on vector<SCM> Alists use are based on linked lists. They have poor locality, which introduces more CPU cache misses. Since LilyPond is not multithreaded, the CPU sits idle during these misses. This is part a series of experiments to rearchitect property storage. None of them seem especially promising currently.

Patch Set 1 #

Total comments: 8

Patch Set 2 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -38 lines) Patch
M lily/grob.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/mutable-properties.hh View 1 2 chunks +34 lines, -15 lines 0 comments Download
M lily/mutable-properties.cc View 1 3 chunks +58 lines, -22 lines 0 comments Download

Messages

Total messages: 13
hahnjo
I gave this patch a try on my system, time lilypond MSDM.ly, 'real' time, 3 ...
4 years ago (2020-04-13 16:40:34 UTC) #1
hanwenn
On 2020/04/13 16:40:34, hahnjo wrote: > I gave this patch a try on my system, ...
4 years ago (2020-04-13 16:58:41 UTC) #2
hahnjo
On 2020/04/13 16:58:41, hanwenn wrote: > On 2020/04/13 16:40:34, hahnjo wrote: > > I gave ...
4 years ago (2020-04-13 17:02:29 UTC) #3
hanwenn
On 2020/04/13 16:58:41, hanwenn wrote: > On 2020/04/13 16:40:34, hahnjo wrote: > > I gave ...
4 years ago (2020-04-13 17:17:31 UTC) #4
hanwenn
On 2020/04/13 17:17:31, hanwenn wrote: > On 2020/04/13 16:58:41, hanwenn wrote: > > On 2020/04/13 ...
4 years ago (2020-04-13 17:43:17 UTC) #5
hanwenn
On 2020/04/13 17:43:17, hanwenn wrote: > On 2020/04/13 17:17:31, hanwenn wrote: > > On 2020/04/13 ...
4 years ago (2020-04-13 18:31:46 UTC) #6
dak
https://codereview.appspot.com/575990043/diff/577740043/lily/mutable-properties.cc File lily/mutable-properties.cc (right): https://codereview.appspot.com/575990043/diff/577740043/lily/mutable-properties.cc#newcode50 lily/mutable-properties.cc:50: if (SCM_EQ_P (key (i), k)) scm_is_eq https://codereview.appspot.com/575990043/diff/577740043/lily/mutable-properties.cc#newcode71 lily/mutable-properties.cc:71: if ...
4 years ago (2020-04-13 20:21:29 UTC) #7
dak
On 2020/04/13 20:21:29, dak wrote: > https://codereview.appspot.com/575990043/diff/577740043/lily/mutable-properties.cc#newcode109 > lily/mutable-properties.cc:109: Mutable_properties::mark () const > This can ...
4 years ago (2020-04-13 20:26:10 UTC) #8
hanwenn
rebase
4 years ago (2020-04-13 20:46:44 UTC) #9
hanwenn
On 2020/04/13 20:26:10, dak wrote: > On 2020/04/13 20:21:29, dak wrote: > > > > ...
4 years ago (2020-04-13 21:08:28 UTC) #10
hanwenn
https://codereview.appspot.com/575990043/diff/577740043/lily/mutable-properties.cc File lily/mutable-properties.cc (right): https://codereview.appspot.com/575990043/diff/577740043/lily/mutable-properties.cc#newcode50 lily/mutable-properties.cc:50: if (SCM_EQ_P (key (i), k)) On 2020/04/13 20:21:29, dak ...
4 years ago (2020-04-13 21:13:42 UTC) #11
dak
On 2020/04/13 21:13:42, hanwenn wrote: > > > > You need to sort the C++ ...
4 years ago (2020-04-13 21:33:28 UTC) #12
dak
4 years ago (2020-04-14 12:37:26 UTC) #13
On 2020/04/13 17:43:17, hanwenn wrote:

> 
> Actually, it looks like I have been measuring noise. Thermal throttling? 
> 
> It looks like I can get reproducible timings if I downclock the CPU from 2.6
to
> 2.0Ghz

Put the following line in the config
/etc/modprobe.d/acpi.conf:options thinkpad-acpi fan_control=1

Then you'll be able to do

echo level 7|sudo tee /proc/acpi/ibm/fan

[CPU intensive stuff]

echo level auto|sudo tee /proc/acpi/ibm/fan

There is also level disengaged , but it's a lot more noise (and fan wear) for
rather little gain.  The fans for T61 tend to die a lot more than those for
T400, but removing and reinstalling a fan only from a fan assembly (also
containing heat sink and heat pipe) is more involved than just exchanging the
fan assembly.
Sign in to reply to this message.

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