8280  Reviews star_rate star_rate star_rate star_rate star_half

High-Performance Python with C Programming

Ascendient Learning's High-Performance Python with C training course focuses on supporting legacy C code for Python Extensions and writing new highly performant code with Cython. This course also...

Read More
Duration 3 days
Course Code PYTH-278
Available Formats Classroom

Overview

Ascendient Learning's High-Performance Python with C training course focuses on supporting legacy C code for Python Extensions and writing new highly performant code with Cython. This course also teaches attendees how to employ the NumPy C API to make NumPy arrays available in C routines.

Skills Gained

  • Profile Python applications to identify performance bottlenecks
  • Understand the speed gains of Cython and C extensions and how to choose the best option for a given application.
  • Interface Python with C using ctypes FFI, C extensions, and Cython
  • Debug Python and C code using VS Code
  • Use the NumPy C API

Prerequisites

Attendees must have completed Ascendient Learning's C Programming for Python Developers course or have equivalent experience, including many years of continuous Python and C experience.

Course Details

Training Materials

All Advanced C/Python training students receive comprehensive courseware.

Software Requirements

  • A virtual machine (VM) with all tools pre-installed will be provided.
  • Students will receive setup instructions for their local machine, but no support will be provided in class to get it working if it has problems.
  • Students will need RDP or SSH to access the VM; even those planning to work locally need remote access if their local setup has problems.

Outline

  • Introduction
  • Profiling and Debugging
    • Debugging Python and C code with VS Code
    • Profiling Python Applications
    • Speed Gains of Cython
    • Speed Gains of C Extensions
    • CPU-bound vs. IO-bound
    • How to Choose the Best Option
  • Interfacing Python with C
    • CTypes FFI
    • C Extensions
    • Cython
  • CTypes FFI
    • Compile C code to a Shared Object
    • Load Shared Object into Python
    • Call C Functions from Python
    • Python Structure Class
    • Python Binary Formatted Strings
  • C Extensions
    • Learn to use the Python C API documentation
    • Basic Structure of a C Extension
    • Compiling C Extensions
    • Import C Extensions in Python
    • Packaging C Extensions
    • Using PyObject
    • Managing Memory and Reference Counting
    • Challenges of Multithreaded Programming and the GIL
    • Challenges of Asynchronous Programming
  • NumPy and C Extensions
    • Learn to use the NumPy C API documentation
    • Using NumPy Arrays with C Code
    • Passing NumPy Arrays to a C Extension
    • Creating NumPy Arrays in a C Extension
    • Using the NumPy C API
  • Cython
    • What is Cython?
    • Installing Cython
    • Compile Python Code
    • Python Code Decorations with Cython
    • Create Python Extensions with Cython
    • Challenges of Multithreaded Programming and the GIL
    • Challenges of Asynchronous Programming
  • Conclusion

Schedule

FAQ

Does the course schedule include a Lunchbreak?

Classes typically include a 1-hour lunch break around midday. However, the exact break times and duration can vary depending on the specific class. Your instructor will provide detailed information at the start of the course.

What languages are used to deliver training?

Most courses are conducted in English, unless otherwise specified. Some courses will have the word "FRENCH" marked in red beside the scheduled date(s) indicating the language of instruction.

What does GTR stand for?

GTR stands for Guaranteed to Run; if you see a course with this status, it means this event is confirmed to run. View our GTR page to see our full list of Guaranteed to Run courses.

Does Ascendient Learning deliver group training?

Yes, we provide training for groups, individuals and private on sites. View our group training page for more information.

What does vendor-authorized training mean?

As a vendor-authorized training partner, we offer a curriculum that our partners have vetted. We use the same course materials and facilitate the same labs as our vendor-delivered training. These courses are considered the gold standard and, as such, are priced accordingly.

Is the training too basic, or will you go deep into technology?

It depends on your requirements, your role in your company, and your depth of knowledge. The good news about many of our learning paths, you can start from the fundamentals to highly specialized training.

How up-to-date are your courses and support materials?

We continuously work with our vendors to evaluate and refresh course material to reflect the latest training courses and best practices.

Are your instructors seasoned trainers who have deep knowledge of the training topic?

Ascendient Learning instructors have an average of 27 years of practical IT experience and have also served as consultants for an average of 15 years. To stay current, instructors spend at least 25 percent of their time learning new, emerging technologies and courses.

Do you provide hands-on training and exercises in an actual lab environment?

Lab access is dependent on the vendor and the type of training you sign up for. However, many of our top vendors will provide lab access to students to test and practice. The course description will specify lab access.

Will you customize the training for our company’s specific needs and goals?

We will work with you to identify training needs and areas of growth.  We offer a variety of training methods, such as private group training, on-site of your choice, and virtually. We provide courses and certifications that are aligned with your business goals.

How do I get started with certification?

Getting started on a certification pathway depends on your goals and the vendor you choose to get certified in. Many vendors offer entry-level IT certification to advanced IT certification that can boost your career. To get access to certification vouchers and discounts, please contact info@ascendientlearning.com.

Will I get access to content after I complete a course?

You will get access to the PDF of course books and guides, but access to the recording and slides will depend on the vendor and type of training you receive.

How do I request a W9 for Ascendient Learning?

View our filing status and how to request a W9.

Reviews

Labs and the study materials provided for Architecting on AWS course are very easy to understand and explains all the topics required to pass the Associate certification.

this class was informative, made me think about certifying for the suse manager cert.

Very good couse and again we would like to see more videos on removing FRUs

The course was informative, and I learnt a new skill. The instructor was up to the point.

I found this course informative. It was easy to follow and provided some good information.