Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • core core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 234
    • Issues 234
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • 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
  • hubzilla
  • corecore
  • Issues
  • #1435

Closed
Open
Created Jan 30, 2020 by Sébastien Huss@sebt3

Cache the result of Zotlabs\Lib\System::get_platform_name

Hi,

I did some xhprof on hubzilla and found out that get_platform_name was a significant part of the CPU consumption. While the function is damn simple, its call count (way over 2000 for a single page) made caching it's result a low hanging fruit and a usefull thing to do. Their is probably many other things to do performnce wise, but nothing come as useful and as easy to do.

Patch attachedcache_plateform_name.patch

Edited Jan 30, 2020 by Sébastien Huss
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking