Mastering Python high performance : measure, optimize, and improve the performance of your Python code with this easy-to-follow guide /
Measure, optimize, and improve the performance of your Python code with this easy-to-follow guide About This Book Master the do's and don'ts of Python performance programming Learn how to use exiting new tools that will help you improve your scripts A step-by-step, conceptual guide to teac...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham, UK :
Packt Publishing,
[2015]
|
Colección: | Community experience distilled.
|
Temas: | |
Acceso en línea: | Texto completo Texto completo |
MARC
LEADER | 00000cam a2200000Ii 4500 | ||
---|---|---|---|
001 | EBSCO_ocn922580767 | ||
003 | OCoLC | ||
005 | 20231017213018.0 | ||
006 | m o d | ||
007 | cr unu|||||||| | ||
008 | 150930t20152015enka o 001 0 eng d | ||
040 | |a UMI |b eng |e rda |e pn |c UMI |d N$T |d OCLCF |d IDEBK |d YDXCP |d DEBBG |d COO |d EBLCP |d VT2 |d DEBSZ |d IDB |d TEFOD |d OCLCQ |d MERUC |d OCLCQ |d CEF |d OCLCQ |d WYU |d UAB |d OCLCQ |d OCLCO |d OCLCQ |d QGK |d OCLCO | ||
019 | |a 921235727 |a 922702955 |a 935250222 |a 1259126559 | ||
020 | |a 9781783989317 |q (electronic bk.) | ||
020 | |a 1783989319 |q (electronic bk.) | ||
020 | |z 9781783989300 | ||
020 | |z 1783989300 | ||
029 | 1 | |a CHNEW |b 000893917 | |
029 | 1 | |a CHVBK |b 374530742 | |
029 | 1 | |a DEBBG |b BV043020419 | |
029 | 1 | |a DEBBG |b BV043627571 | |
029 | 1 | |a DEBSZ |b 455699925 | |
029 | 1 | |a DEBSZ |b 473871785 | |
029 | 1 | |a GBVCP |b 882847473 | |
035 | |a (OCoLC)922580767 |z (OCoLC)921235727 |z (OCoLC)922702955 |z (OCoLC)935250222 |z (OCoLC)1259126559 | ||
037 | |a CL0500000653 |b Safari Books Online | ||
037 | |a 260BB097-9287-4A6A-B626-6DF081DF7BB1 |b OverDrive, Inc. |n http://www.overdrive.com | ||
050 | 4 | |a QA76.73.P98 | |
072 | 7 | |a COM |x 051360 |2 bisacsh | |
082 | 0 | 4 | |a 005.13/3 |2 23 |
049 | |a UAMI | ||
100 | 1 | |a Doglio, Fernando, |e author. | |
245 | 1 | 0 | |a Mastering Python high performance : |b measure, optimize, and improve the performance of your Python code with this easy-to-follow guide / |c Fernando Doglio. |
246 | 3 | 0 | |a Measure, optimize, and improve the performance of your Python code with this easy-to-follow guide |
264 | 1 | |a Birmingham, UK : |b Packt Publishing, |c [2015] | |
264 | 4 | |c ©2015 | |
300 | |a 1 online resource (1 volume) : |b illustrations | ||
336 | |a text |b txt |2 rdacontent | ||
337 | |a computer |b c |2 rdamedia | ||
338 | |a online resource |b cr |2 rdacarrier | ||
347 | |a text file | ||
490 | 1 | |a Community experience distilled | |
588 | 0 | |a Online resource; title from cover page (Safari, viewed September 28, 2015). | |
500 | |a Includes index. | ||
505 | 0 | |a Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Profiling 101; What is profiling?; Event-based profiling; Statistical profiling; The importance of profiling; What can we profile?; Execution time; Where are the bottlenecks?; Memory consumption and memory leaks; The risk of premature optimization; Running time complexity; Constant time -- O(1); Linear time -- O(n); Logarithmic time -- O(log n); Linearithmic time -- O(nlog n); Factorial time -- O(n!); Quadratic time -- O(n^); Profiling best practices. | |
505 | 8 | |a Build a regression-test suiteMind your code; Be patient; Gather as much data as you can; Preprocess your data; Visualize your data; Summary; Chapter 2: The Profilers; Getting to know our new best friends: the profilers; cProfile; A note about limitations; The API provided; The Stats class; Profiling examples; Fibonacci again; Tweet stats; line_profiler; kernprof; Some things to consider about kernprof; Profiling examples; Back to Fibonacci; Inverted index; Summary; Chapter 3: Going Visual: GUIs to Help Understand Profiler Output; KCacheGrind -- pyprof2calltree; Installation; Usage. | |
505 | 8 | |a A profiling example -- TweetStatsA profiling example -- Inverted Index; RunSnakeRun; Installation; Usage; Profiling examples -- the lowest common multiplier; A profiling example -- search using the inverted index; Summary; Chapter 4: Optimize Everything; Memoization / lookup tables; Performing a lookup on a list or linked list; Simple lookup on a dictionary; Binary search; Use cases for lookup tables; Usage of default arguments; List comprehension and generators; ctypes; Loading your own custom C library; Loading a system library; String concatenation; Other tips and tricks; Summary. | |
505 | 8 | |a Chapter 5: Multithreading versus MultiprocessingParallelism versus concurrency; Multithreading; Threads; Multiprocessing; Multiprocessing with Python; Summary; Chapter 6: Generic Optimization Options; PyPy; Installing PyPy; A Just-in-time compiler; Sandboxing; Optimizing for the JIT; Think of functions; Consider using cStringIO to concatenate strings; Actions that disable the JIT; Code sample; Cython; Installing Cython; Building a Cython module; Calling C functions; Solving naming conflicts; Defining types; Defining types during function definitions; A Cython example; When to define a type. | |
505 | 8 | |a LimitationsGenerator expressions; Comparison of char* literals; Tuples as function arguments; Stack frames; How to choose the right option; When to go with Cython; When to go with PyPy; Summary; Chapter 7: Lightning Fast Number Crunching with Numba, Parakeet, and pandas; Numba; Installation; Using Numba; Numba's code generation; Running your code on the GPU; The pandas tool; Installing pandas; Using pandas for data analysis; Parakeet; Installing Parakeet; How does Parakeet work?; Summary; Chapter 8: Putting It All into Practice; The problem to solve; Getting data from the Web. | |
520 | |a Measure, optimize, and improve the performance of your Python code with this easy-to-follow guide About This Book Master the do's and don'ts of Python performance programming Learn how to use exiting new tools that will help you improve your scripts A step-by-step, conceptual guide to teach you how to optimize and fine-tune your critical pieces of code Who This Book Is For If you're a Python developer looking to improve the speed of your scripts or simply wanting to take your skills to the next level, then this book is perfect for you. What You Will Learn Master code optimization step-by-step and learn how to use different tools Understand what a profiler is and how to read its output Interpret visual output from profiling tools and improve the performance of your script Use Cython to create fast applications using Python and C Take advantage of PyPy to improve performance of Python code Optimize number-crunching code with NumPy, Numba, Parakeet, and Pandas In Detail Simply knowing how to code is not enough; on mission-critical pieces of code, every bit of memory and every CPU cycle counts, and knowing how to squish every bit of processing power out of your code is a crucial and sought-after skill. Nowadays, Python is used for many scientific projects, and sometimes the calculations done in those projects require some serious fine-tuning. Profilers are tools designed to help you measure the performance of your code and help you during the optimization process, so knowing how to use them and read their output is very handy. This book starts from the basics and progressively moves on to more advanced topics. You'll learn everything from profiling all the way up to writing a real-life application and applying a full set of tools designed to improve it in different ways. In the middle, you'll stop to learn about the major profilers used in Python and about some graphic tools to help you make sense of their output. You'll then move from generic optimization techniques onto Python-specific ones, going over the main constructs of the language that will help you improve your speed without much of a change. Finally, the book covers some number-crunching-specific libraries and how to use them properly to get the best speed out of them. After reading this book, you will know how to take any Python code, profile it, find out where the bottlenecks are, and apply different techniques to remove them. Style and approach This easy-to-follow, practical guide wi... | ||
546 | |a English. | ||
590 | |a O'Reilly |b O'Reilly Online Learning: Academic/Public Library Edition | ||
590 | |a eBooks on EBSCOhost |b EBSCO eBook Subscription Academic Collection - Worldwide | ||
650 | 0 | |a Python (Computer program language) | |
650 | 0 | |a Computer programming. | |
650 | 6 | |a Python (Langage de programmation) | |
650 | 6 | |a Programmation (Informatique) | |
650 | 7 | |a computer programming. |2 aat | |
650 | 7 | |a COMPUTERS |x Programming Languages |x Python. |2 bisacsh | |
650 | 7 | |a Computer programming |2 fast | |
650 | 7 | |a Python (Computer program language) |2 fast | |
776 | 0 | 8 | |i Print version: |a Doglio, Fernando. |t Mastering Python High Performance. |d Birmingham : Packt Publishing Ltd, ©2015 |z 9781783989300 |
830 | 0 | |a Community experience distilled. | |
856 | 4 | 0 | |u https://learning.oreilly.com/library/view/~/9781783989300/?ar |z Texto completo |
856 | 4 | 0 | |u https://ebsco.uam.elogim.com/login.aspx?direct=true&scope=site&db=nlebk&AN=1063765 |z Texto completo |
938 | |a EBL - Ebook Library |b EBLB |n EBL4191241 | ||
938 | |a EBSCOhost |b EBSC |n 1063765 | ||
938 | |a ProQuest MyiLibrary Digital eBook Collection |b IDEB |n cis32604900 | ||
938 | |a YBP Library Services |b YANK |n 12603152 | ||
994 | |a 92 |b IZTAP |