=?utf-8?b?Z19zdHJpbmdfYXNzaWduKHN0ciw=?= ""); vs. =?utf-8?b?Z19zdHJpbmdfdHJ1bmNhdGUoc3RyLA==?= 0)
- From: Holger Freyther <holger freyther de>
- To: gtk-app-devel-list gnome org
- Subject: g_string_assign(str, ""); vs. g_string_truncate(str, 0)
- Date: Fri, 17 Dec 2010 11:40:29 +0000 (UTC)
Hi all,
I have a small Glib performance question. From my microbenchmark it is obvious
that g_string_truncate is faster in empty and non-empty string case. Is there
any reason one would like to use g_string_assign(str, "")?
Slightly related to that. Did anyone ever create a repository of SystemTap files
for Glib? It could make sense to collect performance best practises in systemtap
and then ran these on the application...
regards
holger
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]