After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 689662 - small patch on vector usage
small patch on vector usage
Status: RESOLVED DUPLICATE of bug 689689
Product: gparted
Classification: Other
Component: application
GIT HEAD
Other other
: Normal enhancement
: ---
Assigned To: gparted maintainers alias
gparted maintainers alias
Depends on:
Blocks:
 
 
Reported: 2012-12-04 22:23 UTC by Mathieu Dupuy
Modified: 2012-12-05 15:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
vector usage patch (485 bytes, patch)
2012-12-04 22:24 UTC, Mathieu Dupuy
none Details | Review

Description Mathieu Dupuy 2012-12-04 22:23:24 UTC
Hello.
I would like to propose a small patch replacing one by one argument
pushing into the arguments vector in an handwritten 'for' loop by its
builtin range constructor counterpart.
It's a small improvement, but it can probably improve gparted startup
time from a few microsecond, and remove an handwritten loop.
I thought it could be useful ; I'll be happy to hear your comments.
Cheers,
Comment 1 Mathieu Dupuy 2012-12-04 22:24:12 UTC
Created attachment 230705 [details] [review]
vector usage patch
Comment 2 Mathieu Dupuy 2012-12-05 15:46:10 UTC
created the proposal twice, sorry. I think the second better written, so I mark that one as dupplicated.

*** This bug has been marked as a duplicate of bug 689689 ***