Reduce memory footprint of SDK by separating namespace imports
まだ誰も着手していません。
評価
調査の方向性
まず、SDK が現在どのように namespace モジュールをインポートしているかを確認し、特に team と team_log の namespace に注意してください。namespace を個別にインポートする方法と遅延読み込みを比較し、既存の SDK の動作を損なわずにメモリ使用量を削減することを Definition of Done としてください。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Python
- スター
- 983
- フォーク
- 331
- 平均マージ
- 3分
- マージ済み PR(30日)
- 10
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
dropbox/dropbox-sdk-python のほかの issue
-
question
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
dropbox/dropbox-sdk-python#585 · コメント 4 件 ·
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
dropbox/dropbox-sdk-python#491 · コメント 1 件 ·
-
enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
dropbox/dropbox-sdk-python#482 · コメント 1 件 · リアクション 2 件 ·
-
question
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
dropbox/dropbox-sdk-python#476 · コメント 3 件 ·
-
bug
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
dropbox/dropbox-sdk-python#475 · コメント 1 件 ·
dropbox/dropbox-sdk-python の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
stephrobert/dsoxlab#238 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
sublimehq/package_control#1780 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
nwg-piotr/nwg-displays#145 ·