ENع
الدرس 27 · Building and performance

Writing fast C++

لم يُترجم بعد؛ يُعرض باللغة الإنجليزية

Fast C++ starts with an optimised build and a measurement, and very often ends with memory. Follow two loop nests that add up the same 4 × 4 grid: one walks memory in the order it is stored and pays one cache miss per line, the other jumps by a whole row on every read and misses every time. Same instructions, same answer, very different speed.

12 دقيقة9 خطوات5 أسئلةAdvanced
شكل 27 · تفاعلي
جارٍ تحميل الرسم…
أو ← →

اختبار يتاح بعد الخطوة الأخيرة.