[callgrind] compiz spends ~25% of its time constructing/destructing strings in PrivateScreen::handleActionEvent
Bug #1005569 reported by
Sam Spilsbury
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Compiz |
Fix Released
|
High
|
Daniel van Vugt | ||
Compiz Core |
Fix Released
|
High
|
Łukasz Zemczak | ||
compiz (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Precise |
Fix Released
|
High
|
Unassigned |
Bug Description
[Test Case]
Performance improvement, no obvious test case possible. Check for visible regressions.
[Regression Potential]
Compiz options (like for plugins) stop working
Original description:
Callgrind reports that CompOption::setName (and hence about 37,000,000 calls to malloc) is being called necessarily, mostly all from handleActionEvent.
Related branches
lp://staging/~vanvugt/compiz/fix-1005569.2
- Sam Spilsbury: Approve
-
Diff: 30 lines (+9/-0)2 files modifiedinclude/core/option.h (+1/-0)
src/option.cpp (+8/-0)
lp://staging/~vanvugt/compiz/fix-1005569.1
- Sam Spilsbury: Approve
-
Diff: 74 lines (+20/-15)1 file modifiedsrc/event.cpp (+20/-15)
lp://staging/~sil2100/compiz-core/cherry_3236_3237
- Daniel van Vugt: Approve
-
Diff: 101 lines (+29/-14)3 files modifiedinclude/core/option.h (+1/-0)
src/event.cpp (+20/-14)
src/option.cpp (+8/-0)
Changed in compiz-core: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in compiz: | |
status: | Confirmed → Triaged |
Changed in compiz (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
summary: |
- [callgrind] compiz spends ~17% of its time constructing strings in - PrivateScreen::handleActionEvent + [callgrind] compiz spends ~25% of its time constructing/destructing + strings in PrivateScreen::handleActionEvent |
Changed in compiz-core: | |
status: | Triaged → In Progress |
assignee: | nobody → Łukasz Zemczak (sil2100) |
description: | updated |
Changed in compiz (Ubuntu): | |
status: | Triaged → In Progress |
Changed in compiz (Ubuntu Precise): | |
status: | Triaged → In Progress |
Changed in compiz-core: | |
status: | In Progress → Fix Committed |
tags: |
added: verification-done removed: verification-needed |
Changed in compiz: | |
status: | Fix Committed → Fix Released |
Changed in compiz-core: | |
status: | Fix Committed → Fix Released |
Changed in compiz-core: | |
status: | Fix Released → Fix Committed |
Changed in compiz-core: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Callgrind says this accounts for about 5% of "self" time. (Which was the second highest after the glib mainloop dispatch ... for some reason)