pulp / pulp/pulpcore

Investigate reducing overhead caused by `HrefPrnFieldMixin`

Open
#7,661 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Performance Task
Dominant language
Python
Stars
598
Forks
168
Avg merge
1d 4h
Merged PRs (30d)
86

Description

The overhead of HrefPrnFieldMixin is surprisingly high, being actually significant (10-20%) of the total time required during uploading of RPM packages using the synchronous APIs, and perhaps in other circumstances also.

https://github.com/pulp/pulpcore/blob/f53976e6e2dace413ab89ea0a05a327c68a01946/pulpcore/app/serializers/base.py#L66-L80

First noted in a prior PR: https://github.com/pulp/pulpcore/pull/6693#issuecomment-2988710298

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with pulpcore/app/serializers/base.py at lines 66-80 and review the prior discussion in pull request 6693. Profile synchronous RPM package uploads to confirm the 10–20% overhead attributed to HrefPrnFieldMixin and identify where its cost occurs. Done means a measured reduction in overhead with the relevant behavior preserved.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.