Merge lp:~kamstrup/dee/signal-by-id into lp:dee
Proposed by
Mikkel Kamstrup Erlandsen
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Michal Hruby | ||||
Approved revision: | 321 | ||||
Merged at revision: | 318 | ||||
Proposed branch: | lp:~kamstrup/dee/signal-by-id | ||||
Merge into: | lp:dee | ||||
Diff against target: |
120 lines (+20/-10) 2 files modified
dee/dee-sequence-model.c (+16/-6) tests/test-benchmark.c (+4/-4) |
||||
To merge this branch: | bzr merge lp:~kamstrup/dee/signal-by-id | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michal Hruby (community) | Approve | ||
Review via email: mp+84821@code.launchpad.net |
Description of the change
Emit signal by id, not by name, in DeeSequenceModel for a small perf gain
The benchmark suite indicates a 0 > x > 1% perf gain from this - but non-zero!
I expect the numbers to be slightly better on lower end hardware, and also when
looking on the actual spend CPU time, which I haven't done.
To post a comment you must log in.
I'd prefer if we just used static ints initialized during class_init (or perhaps instance init if it's not available during class_init). There's no need to add these to each and every instance.