[glib: 5/8] Add some notes on complexity in glib/gqueue.c
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 5/8] Add some notes on complexity in glib/gqueue.c
- Date: Wed, 2 Sep 2020 13:09:54 +0000 (UTC)
commit a62fcb9af11eee964731645bc3f68ebf8f37344b
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Tue Aug 6 19:12:51 2019 +0200
Add some notes on complexity in glib/gqueue.c
Related to issue #3
glib/gqueue.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/glib/gqueue.c b/glib/gqueue.c
index 0cc7ab200..f7acb945a 100644
--- a/glib/gqueue.c
+++ b/glib/gqueue.c
@@ -29,7 +29,8 @@
*
* The #GQueue structure and its associated functions provide a standard
* queue data structure. Internally, GQueue uses the same data structure
- * as #GList to store elements.
+ * as #GList to store elements with the same complexity over
+ * insertion/deletion (O(1)) and access/search (O(n)) operations.
*
* The data contained in each element can be either integer values, by
* using one of the [Type Conversion Macros][glib-Type-Conversion-Macros],
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]