openedx / openedx/openedx-platform

Examine Django-countries[pyuca] Memory Usage and lexical sorting

Open
#35,220 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

performance
Dominant language
Python
Stars
8.2k
Forks
4.4k
Avg merge
6d 18h
Merged PRs (30d)
42

Description

About 4-5% of LMS memory usage comes from pyuca, which as far as I can tell is used in our system to give django-countries a better sort order (it's an optional dependency of that package). This is because Unicode sorting is quite complex, involving multiple layers of lookup tables and glyph translations to handle many language-specific quirks.

How different is the sort order without pyuca installed, and how much does it matter? It must have some level of importance for them to bundle it with django-countries the way they did, but I'm not clear on how critical it is.

(Making a ticket for this for later followup since I don't have time to dig into it now.)

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

No files, tests, or entry points are named. Compare django-countries sorting with and without its optional pyuca dependency, then measure the LMS memory difference and document whether the changed order is acceptable and how critical pyuca is.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.