
24 Sep
2015
24 Sep
'15
4:11 p.m.
On 24 September 2015 at 15:11, Mario Lang
Profiling tells me I am spending 90% of all the time in 'dur', which is my small helper method to calculate the duration of a PartialVoice, PartialMeasure or Voice.
As a start, and to aid profiling, I suggest getting rid of the Duration type class and giving explicit names to different dur functions. Which one of the dur's is getting called most? How do they interact? My hunch is that after you do this (something like) memoization to avoid calculating the durations repeatedly will be needed. Hope this helps, Ozgur PS: Cool problem! Do you have some input/output pairs available? If you can share some, others can validate their attempts without too much domain knowledge.