pulp / pulp/pulpcore

HrefPrnFieldMixin has a high performance impact

Open
#6,719 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the bug

HrefPrnFieldMixin shows up prominently in profiling up package upload. The reversing / resolution part specifically - lots of time is spent in Django's URL handling stack.

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

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 lines 66-80 and profile package upload to confirm the reversing and resolution cost attributed to HrefPrnFieldMixin. Trace the Django URL handling calls involved and identify a measurable way to reduce their impact. The issue names no test or specific target behavior, so completion criteria need to be established from the profiling results.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
backend, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.