انتقل إلى المحتوى
أمين أبوزيد
درس مخطط لهMID-001-L05

مُترجم JIT والإحماء (Warm-up)

  • الدرس 5 من 6
  • Mid-level
في هذا الدرس 4 موضوعات

هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.

نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.

في هذا الدرس

explain why performance changes after startup.

الموضوعات المخطط لها

  • The JVM starts by interpreting; it counts method calls and loop iterations.
  • Tiered compilation: C1 compiles quickly with light optimization; C2 compiles hot code with heavy optimization.
  • C2 uses profile data (inlining, escape analysis) and can deoptimize if its assumptions break.
  • Result: first requests are slow, later ones fast. This is warm-up.
  • Benchmarking cold code measures startup, not steady state.
تفاصيل المخطط المبدئي

عرض عملي

a latency curve: high for the first ~1,000 requests, dropping in steps as tiers kick in.

اختبر فهمك

Why is the first request slower?

أظهر الإجابة

Code is interpreted and classes are still loading; hot code is not yet compiled.

التطبيق

طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.

المختبر والتمارين الاختبار

تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.

اكتب للبحث في المستويات والمراحل والوحدات والدروس.