
۴۴٬۰۰۰تومان
نوع فایل دانلود: EPUB
پس از خرید، یک فایل EPUB دریافت میکنید.
این فایل با Calibre، Apple Books و سایر کتابخوانهای دیجیتال مناسب است.
کارایی برنامههای پایتون خود را با تکنیکهای پیشرفته بالا ببرید.
نمای کلی
گلوگاههای برنامههایتان را پیدا کنید و با بهترین تکنیکهای profiling آنها را برطرف کنید.
کد عددی کارآمد با NumPy و Cython بنویسید.
برنامههایتان را طوری تطبیق دهید که با برنامهنویسی موازی روی چند پردازنده اجرا شوند.
با جزئیات بیشتر
پایتون زبانی با جامعهای پویا است که به سادگی، خوانایی کد و قدرت بیان شهرت دارد. مجموعهٔ گستردهای از کتابخانههای شخص ثالث آن را برای کاربردهای گوناگون مناسب کرده است. به همین دلیل برنامهنویسها میتوانند مفاهیم را با تعداد خطهای کمتری نسبت به زبانهای مشابه بیان کنند. وجود ابزارهای عددی باکیفیت، پایتون را به گزینهای عالی برای محاسبات با کارایی بالا تبدیل کرده است. سرعت برنامه به کیفیت نوشتن کد بستگی دارد. کد بد یعنی برنامهٔ کند، و برنامهٔ کند یعنی مشتری ناراضی.
این کتاب راهنمایی مبتنی بر مثال است برای تکنیکهایی که کارایی برنامههای پایتون را بهطور چشمگیر بهتر میکنند. به شما یاد میدهد چگونه با ترفندهای پایتون خالص، کتابخانههای پربازده و یکپارچهسازی پایتون با C، بهینهسازی کنید. بخشی هم دربارهٔ نوشتن و اجرای کد موازی دارد.
این کتاب به شما یاد میدهد هر برنامهای را خیلی سریعتر اجرا کنید. تکنیکهای روز را روی مثالهای عملی بهکار میگیرید. همچنین با ابزارهای مختلف profiling آشنا میشوید تا مشکلات کارایی را پیدا کنید. یاد میگیرید کد عددی را با NumPy و Cython سریعتر کنید. برنامهنویسی موازی را هم معرفی میکند تا از پردازندههای چند هستهای امروزی بهره ببرید.
این راهنما برای رسیدن به بهترین کارایی ممکن در برنامههای پایتون شما ایدهآل است.
آنچه از این کتاب یاد میگیرید
کارایی برنامهها را با معیارهای سنجش (benchmark) ارزیابی کنید.
گلوگاههای کد را با ابزارهای profiling پایتون پیدا کنید.
با جایگزینی حلقههای پایتون با NumPy، کد را سریعتر کنید.
کارایی NumPy را با کامپایلر numexpr بالا ببرید.
با Cython به کارایی نزدیک به زبان C برسید.
برای چند پردازنده کد بنویسید.
یک برنامه را از ابتدا تا انتها profiling، بهینهسازی و بازنویسی کنید.
رویکرد
راهنمایی جذاب و آسان که تکنیکهای افزایش کارایی کد پایتون و کاربردشان را با مثالهای عملی فراوان نشان میدهد.
مخاطب کتاب
اگر برنامهنویسی هستید که قدرت و سادگی پایتون را دوست دارید و میخواهید از این زبان در برنامههای حساس به کارایی استفاده کنید، این کتاب برای شماست. فقط دانش پایهٔ زبان پایتون لازم است. کتاب هم موضوعات پایه و هم پیشرفته را پوشش میدهد؛ پس چه تازهکار باشید و چه برنامهنویس باتجربهٔ پایتون، برایتان مفید خواهد بود.
Boost the performance of your Python programs using advanced techniquesOverviewIdentify the bottlenecks in your applications and solve them using the best profiling techniquesWrite efficient numerical code in NumPy and CythonAdapt your programs to run on multiple processors with parallel programmingIn DetailPython is a programming language with a vibrant community known for its simplicity, code readability, and expressiveness. The massive selection of third party libraries make it suitable for a wide range of applications. This also allows programmers to express concepts in fewer lines of code than would be possible in similar languages. The availability of high quality numerically-focused tools has made Python an excellent choice for high performance computing. The speed of applications comes down to how well the code is written. Poorly written code means poorly performing applications, which means unsatisfied customers.This book is an example-oriented guide to the techniques used to dramatically improve the performance of your Python programs. It will teach optimization techniques by using pure python tricks, high performance libraries, and the python-C integration. The book will also include a section on how to write and run parallel code.This book will teach you how to take any program and make it run much faster. You will learn state-of the art techniques by applying them to practical examples. This book will also guide you through different profiling tools which will help you identify performance issues in your program. You will learn how to speed up your numerical code using NumPy and Cython. The book will also introduce you to parallel programming so you can take advantage of modern multi-core processors.This is the perfect guide to help you achieve the best possible performance in your Python applications.What you will learn from this bookAssess the performance of your programs using benchmarksSpot the bottlenecks in your code using the Python profiling toolsSpeed up your code by replacing Python loops with NumPyBoost NumPy performance using the numexpr compilerUse Cython to reach performance on par with the C languageWrite code for multiple processorsProfile, optimize, and rewrite an application from start to finishApproachAn exciting, easy-to-follow guide illustrating the techniques to boost the performance of Python code, and their applications with plenty of hands-on examples.Who this book is written forIf you are a programmer who likes the power and simplicity of Python and would like to use this language for performance-critical applications, this book is ideal for you. All that is required is a basic knowledge of the Python programming language. The book will cover basic and advanced topics so will be great for you whether you are a new or a seasoned Python developer.