Merge lp:~mapreri/libeatmydata/1556410 into lp:libeatmydata
Proposed by
Mattia Rizzolo
Status: | Rejected |
---|---|
Rejected by: | Stewart Smith |
Proposed branch: | lp:~mapreri/libeatmydata/1556410 |
Merge into: | lp:libeatmydata |
Diff against target: |
64 lines (+10/-5) 2 files modified
Makefile.am (+1/-1) libeatmydata/libeatmydata.c (+9/-4) |
To merge this branch: | bzr merge lp:~mapreri/libeatmydata/1556410 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stewart Smith | Pending | ||
Review via email: mp+288856@code.launchpad.net |
To post a comment you must log in.
Unmerged revisions
- 106. By Mattia Rizzolo
-
Use a weak reference to pthread_testcancel, so that it's called only if the program itself pulls libpthread
This avoid an hard link on pthread.
libeatmydata is linked against libpthread. This thus pulls libpthread
in all processes run under eatmydata. It happens that having
libpthread in a process makes pthread_mutex_lock( ) and all such basic
performance-sensitive operations much heavier (since they then have to
deal with potential multithreading). This avoids that by using a weak reference
to pthread_testcancel, so that pthread_testcancel is called only if the program
itself pulls libpthread.LP: #1556410
I forgot, the author of the patch is Samuel Thibault <email address hidden>... maybe you want to credit him somewhere (I should have added it to the commit message, maybe)