[gnome-devel-docs] programming-guidelines: Remove recommendation to use GSlice
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs] programming-guidelines: Remove recommendation to use GSlice
- Date: Tue, 10 Feb 2015 11:12:15 +0000 (UTC)
commit 2f50e531b0530f9cb2b57720d1fbd267772e243d
Author: Philip Withnall <philip withnall collabora co uk>
Date: Mon Feb 9 19:20:02 2015 +0000
programming-guidelines: Remove recommendation to use GSlice
Its performance advantage has, over the years, turned into a significant
performance disadvantage against glibc’s malloc. It still has its gains
on Windows, but not significant enough to recommend it. It is likely to
be pulled from GLib in future.
https://bugzilla.gnome.org/show_bug.cgi?id=376123
programming-guidelines/C/c-coding-style.page | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/programming-guidelines/C/c-coding-style.page b/programming-guidelines/C/c-coding-style.page
index 46bf7e4..2f5f911 100644
--- a/programming-guidelines/C/c-coding-style.page
+++ b/programming-guidelines/C/c-coding-style.page
@@ -867,14 +867,13 @@ typedef struct _GtkFooInterface GtkFooInterface;</code>
<p>
When dynamically allocating data on the heap either use
- <code>g_new()</code> or, if allocating multiple small data structures,
- <code>g_slice_new()</code>.
+ <code>g_new()</code>.
</p>
<p>
Public structure types should always be returned after being
zero-ed, either explicitly for each member, or by using
- <code>g_new0()</code> or <code>g_slice_new0()</code>.
+ <code>g_new0()</code>.
</p>
</section>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]