Putting Performance In Perspective
@johnkpaul がすでに取り組んでいます。
2012年10月16日 から。
評価
この issue はまだ評価されていません。
説明
The internet is rife with all sorts of advice about performance, and jQuery and JavaScript performance in particular. Unfotunately, a lot of this filters down into a context-free echo chamber that has mixed-results in end-developer code. For instance, you'll see people who think nothing of nesting several AJAX calls, but then they'll end up doing a manual for loop over jQuery selections in in those nested callbacks because they "heard $.each was slow." We should breathe some sanity into this discussion and provide context for our other performance tips by explaining basic things like
- importance of profiling
- optimizing the things that will give you the biggest payoff/that have room for optimation (don't optimize the thing taking 1% of the time)
- balancing performance with maintainability/readability
- avoiding premature optimization, but also, what to prematurely optimize, e.g., caching jQuery collections is not only better because it's faster, but because it improves readability and code structure
- library problems are likely different than your problems. in other words, if your app is slow, it's probably not because of scope chain traversal
- if the only thing slow about your app is the overhead of
$.each, have a Diet Coke
- 主要言語
- JavaScript
- スター
- 914
- フォーク
- 472
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
jquery/learn.jquery.com のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
jquery/learn.jquery.com#828 ·
-
Word(s) missing in article?再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンChapter: events
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
jquery/learn.jquery.com#751 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
jquery/learn.jquery.com#814 · コメント 1 件 ·
-
Chapter: jquery-core help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
jquery/learn.jquery.com#799 ·
-
Chapter: plugins
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
jquery/learn.jquery.com#796 ·
jquery/learn.jquery.com の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
good first issue help wanted javascript up-for-grabs
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
andrewsiah/agentswarm-data-tasks#307 ·
メンテナーはふだん 1 日以内に返信
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
coder/claudecode.nvim#588 ·
メンテナーはふだん 1 日以内に返信
-
area: web tech debt
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
digitalbazaar/http-client#60 ·