
۴۴٬۰۰۰تومان
نوع فایل دانلود: EPUB
پس از خرید، یک فایل EPUB دریافت میکنید.
این فایل با Calibre، Apple Books و سایر کتابخوانهای دیجیتال مناسب است.
جلد -- حق چاپ -- بخش تقدیر و تشکر -- دربارهٔ نویسنده -- دربارهٔ داور -- www.PacktPub.com -- بازخورد مشتریان -- فهرست مطالب -- پیشگفتار -- فصل ۱: بنچمارککردن و پروفایلگیری -- طراحی برنامهتان -- نوشتن تستها و بنچمارکها -- زمانسنجی بنچمارک -- بنچمارکها و تستهای بهتر با pytest-benchmark -- پیدا کردن گلوگاهها با cProfile -- پروفایلگیری خطبهخط با line\_profiler -- بهینهسازی کد ما -- ماژول dis -- پروفایلگیری مصرف حافظه با memory\_profiler -- جمعبندی -- فصل ۲: بهینهسازیهای پایتونِ خالص -- الگوریتمها و ساختارهای دادهٔ مفید -- لیستها و dequeها -- دیکشنریها -- ساخت یک نمایهٔ جستجوی حافظهمحور با استفاده از نگاشت هش -- مجموعهها -- هِیپها -- تریها -- کشکردن و memoization -- Joblib -- کامپرهنشنها و generatorها -- جمعبندی -- فصل ۳: عملیات سریعِ آرایهها با NumPy و Pandas -- شروع کار با NumPy -- ساخت آرایهها -- دسترسی به آرایهها -- broadcasting -- عملیات ریاضی -- محاسبهٔ norm -- بازنویسی شبیهساز ذرهها در NumPy -- رسیدن به بهترین کارایی با numexpr -- Pandas -- مبانی Pandas -- نمایهکردن اشیای Series و DataFrame -- عملیاتِ سبک دیتابیس با Pandas -- mapping -- گروهبندی، تجمیعها و transforms -- join کردن -- جمعبندی -- فصل ۴: کاراییِ C با Cython -- کامپایلکردن افزونههای Cython -- اضافهکردن تایپهای ایستا -- متغیرها -- توابع -- کلاسها -- اشتراکگذاری اعلانها -- کار با آرایهها -- آرایهها و اشارهگرهای C -- آرایههای NumPy -- typed memoryviewها -- شبیهساز ذرهها در Cython -- پروفایلگیری در Cython -- استفاده از Cython با Jupyter -- جمعبندی -- فصل ۵: بررسی کامپایلرها -- Numba -- شروع کار با Numba -- تخصصیسازیِ نوعها -- حالت object در برابر حالت native -- Numba و NumPy -- universal functionها با Numba -- generalized universal functionها -- JIT کلاسها -- محدودیتها در Numba -- پروژهٔ PyPy
Cover -- Copyright -- Credits -- About the Author -- About the Reviewer -- www.PacktPub.com -- Customer Feedback -- Table of Contents -- Preface -- Chapter 1: Benchmarking and Profiling -- Designing your application -- Writing tests and benchmarks -- Timing your benchmark -- Better tests and benchmarks with pytest-benchmark -- Finding bottlenecks with cProfile -- Profile line by line with line\_profiler -- Optimizing Read more... Abstract: Cover -- Copyright -- Credits -- About the Author -- About the Reviewer -- www.PacktPub.com -- Customer Feedback -- Table of Contents -- Preface -- Chapter 1: Benchmarking and Profiling -- Designing your application -- Writing tests and benchmarks -- Timing your benchmark -- Better tests and benchmarks with pytest-benchmark -- Finding bottlenecks with cProfile -- Profile line by line with line\_profiler -- Optimizing our code -- The dis module -- Profiling memory usage with memory\_profiler -- Summary -- Chapter 2: Pure Python Optimizations -- Useful algorithms and data structures -- Lists and deques -- Dictionaries -- Building an in-memory search index using a hash map -- Sets -- Heaps -- Tries -- Caching and memoization -- Joblib -- Comprehensions and generators -- Summary -- Chapter 3: Fast Array Operations with NumPy and Pandas -- Getting started with NumPy -- Creating arrays -- Accessing arrays -- Broadcasting -- Mathematical operations -- Calculating the norm -- Rewriting the particle simulator in NumPy -- Reaching optimal performance with numexpr -- Pandas -- Pandas fundamentals -- Indexing Series and DataFrame objects -- Database-style operations with Pandas -- Mapping -- Grouping, aggregations, and transforms -- Joining -- Summary -- Chapter 4: C Performance with Cython -- Compiling Cython extensions -- Adding static types -- Variables -- Functions -- Classes -- Sharing declarations -- Working with arrays -- C arrays and pointers -- NumPy arrays -- Typed memoryviews -- Particle simulator in Cython -- Profiling Cython -- Using Cython with Jupyter -- Summary -- Chapter 5: Exploring Compilers -- Numba -- First steps with Numba -- Type specializations -- Object mode versus native mode -- Numba and NumPy -- Universal functions with Numba -- Generalized universal functions -- JIT classes -- Limitations in Numba -- The PyPy project