-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TempoConverter: ↑ performance (catch expensive attr)
With this commit we define a private tempo envelope class for our 'TempoConverter'. This private class catches its '_absolute_time_in_floats_tuple_and_duration'. With this we can improve the performance of the 'value_at' method and with this improvment we can have a faster converter. This is actually not safe, because the envelope is still mutable. But we trust that no one changes anything with our internal envelope and hope everything goes well. The long term solution is to implement a 'freeze' method for all mutwo objects, which auto-converts all properties to catched properties. But this may still takes some time and we already want to have faster converters now.
- Loading branch information
1 parent
45ab563
commit 05711a7
Showing
1 changed file
with
29 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters