Skip to content

Performance improvement based on pprofile - #375

Merged
gab-arrobo merged 2 commits into
omec-project:mainfrom
gab-arrobo:pprofile
Aug 4, 2026
Merged

Performance improvement based on pprofile#375
gab-arrobo merged 2 commits into
omec-project:mainfrom
gab-arrobo:pprofile

Conversation

@gab-arrobo

Copy link
Copy Markdown
Contributor

No description provided.

@gab-arrobo
gab-arrobo requested review from a team and a lite review from Copilot August 4, 2026 07:19
Signed-off-by: Arrobo, Gabriel <gabriel.arrobo@intel.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to improve runtime performance in PCF request handling (per profiling) by reducing repeated allocations/lookups on hot paths.

Changes:

  • Added a cached UDR (Nudr_DR) API client in util.GetNudrClient to avoid rebuilding clients repeatedly.
  • Cached UdrUri on the UE context to avoid repeated NRF discovery calls.
  • Reduced log verbosity for high-frequency handler/payload logs.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

File Description
util/pcf_util.go Adds global caching for the Nudr_DR API client to reduce repeated client construction.
producer/smpolicy.go Lowers some SM policy logs to Debug and caches UE’s UdrUri after discovery.
producer/ampolicy.go Lowers AM policy create handler log to Debug and reuses cached UE UdrUri before doing NRF discovery.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread producer/smpolicy.go
Comment thread producer/smpolicy.go Outdated
Comment thread producer/ampolicy.go Outdated
Comment thread producer/ampolicy.go
Comment thread util/pcf_util.go
Comment thread util/pcf_util.go Outdated
Copilot AI review requested due to automatic review settings August 4, 2026 07:54
Signed-off-by: Arrobo, Gabriel <gabriel.arrobo@intel.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

@andybavier andybavier left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@gab-arrobo
gab-arrobo merged commit 1d667f5 into omec-project:main Aug 4, 2026
12 checks passed
@gab-arrobo
gab-arrobo deleted the pprofile branch August 4, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants