|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #66489 Runtime of operations on SPL Datastructures not documented
Submitted: 2014-01-15 15:59 UTC Modified: 2016-08-25 00:15 UTC
From: ysangkok at gmail dot com Assigned:
Status: Open Package: SPL related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
18 - 4 = ?
Subscribe to this entry?

 [2014-01-15 15:59 UTC] ysangkok at gmail dot com
It is absolutely critical to a whole bunch of use cases that the runtime of different operations on SPL datastructures is known.

For example, count() on an SPL doubly-linked list might be O(n). Or maybe there is a counter being decremented/incremented each time something is removed, which would make it O(1).

Expected result:
A note on each page denoting asymptotic worst case, average case, and best case runtime, and a table for overview.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-08-25 00:15 UTC]
-Package: Documentation problem +Package: SPL related
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Oct 25 14:01:23 2020 UTC