Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • gjs gjs
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 116
    • Issues 116
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 18
    • Merge requests 18
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • gjsgjs
  • Merge requests
  • !121

object: Embed wrapped object list into ObjectInstance

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Carlos Garnacho requested to merge carlosg/gjs:reduce-objectinstance-overhead into master Apr 10, 2018
  • Overview 18
  • Commits 1
  • Pipelines 5
  • Changes 1

Replace the usage of std::set by making ObjectInstance keep links to the previous/next ObjectInstance. This makes insertion/removal O(1), while keeping the O(n) behavior when objects are checked en masse, and reduces memory overhead since we now need 2 pointers per object instead of a full node in a R-B tree plus per-node malloc overhead.

#142 (closed)

Closes: #142 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: reduce-objectinstance-overhead