Reduce memory footprint of SDK by separating namespace imports
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
Inizia esaminando come l’SDK importa attualmente i suoi moduli namespace, prestando particolare attenzione ai namespace team e team_log. Confronta le importazioni separate dei namespace con il caricamento lazy e considera come criterio di completamento la riduzione dell’uso della memoria senza compromettere il comportamento esistente dell’SDK.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Why is this feature valuable to you? Does it solve a problem you're having?
The Dropbox API and SDK cover a large range of functionality while some apps only use a small subset. This may be particularly true for some namespaces such as team and team_log which require different Dropbox subscriptions.
Importing all modules to cover the full API requires a relatively large amount of memory (~30 MB without 3rd party modules such as requests). A large fraction of this actually comes from the team_log namespace.
Describe the solution you'd like
Would it be possible to have separate classes for different namespaces and import modules only as needed? This of course would be a major change in design and may deviate from how other Dropbox SDKs handle this. Nevertheless, it may be worth considering, especially as new namespaces to support an evolving product will be added in the future.
Describe alternatives you've considered
Lazy loading of modules, at the point of use, may be an alternative.
- Lingua principale
- Python
- Stelle
- 983
- Fork
- 331
- Merge medio
- 3m
- PR unite (30g)
- 10
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di dropbox/dropbox-sdk-python
-
question
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
dropbox/dropbox-sdk-python#585 · 4 commenti ·
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
dropbox/dropbox-sdk-python#491 · 1 commento ·
-
enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
dropbox/dropbox-sdk-python#482 · 1 commento · 2 reazioni ·
-
question
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
dropbox/dropbox-sdk-python#476 · 3 commenti ·
-
bug
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
dropbox/dropbox-sdk-python#475 · 1 commento ·
Tutte le issue di dropbox/dropbox-sdk-python
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
anthropics/skills#1811 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
speaches-ai/speaches#678 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
datalayer/mcp-compose#42 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
conda-forge/spacy-feedstock#177 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
UKGovernmentBEIS/inspect_evals#2523 ·