Zero-Copy Zen: Boost Performance with Memory View
07-20, 14:00–14:30 (Europe/Prague), North Hall

Are you tired of struggling with memory management in Python? Do you want to take your skills to the next level and achieve maximum performance while minimising memory usage? Look no further, here is Zero-Copy in Python!
Zero-copy is a technique in computer programming that allows data to be transferred between different parts of a program without being copied to intermediate buffers. In Python, this technique can be achieved using the memory view object, which provides a view into the memory of other objects. Learn how to efficiently manipulate large datasets and optimise your code with the help of this powerful tool. Whether you're working with sockets, objects or memory profiling, memory view is your key to faster and more efficient Python programming.

In today's data-driven world, efficient memory management is critical for achieving optimal performance in Python. Memory view and byte array provide a powerful combination of tools for managing bytes and memory in Python, enabling zero-copy interactions that can significantly improve performance and reduce memory usage.

Memory view is a built-in Python class that provides a zero-copy interface to the memory of an object, allowing efficient manipulation of large data sets. Memory view objects can be used to share memory between different parts of a program without creating intermediate copies of the data, which can significantly improve the performance of Python code. This feature is particularly useful when working with large arrays, binary data, or network programming using sockets. Memory view can also be used in conjunction with the buffer protocol to work with objects in a zero-copy manner.

Overall, memory view is a powerful tool for Python developers looking to optimise their code and improve performance. This talk will explore the technical aspects of memory view and byte array, providing real-world examples of how these tools can be used to achieve zero-copy interactions with bytes. Attendees will learn how to optimise their code by leveraging these tools, with a focus on achieving maximum performance while minimising memory usage.

Expected audience expertise


Kesia Mary Joies is a passionate Python developer. She enjoys leveraging logical thinking to develop software solutions that make people's lives easier. At present, she is focused on developing Strollby - a travel platform that utilises Python micro-services with GraphQL backend.

She considers herself as a Leader, Inspirer, and Philanthropist. She was awarded the Grace Hopper Scholarship for the year 2021, awarded annually to women in Technology. Also, she was recognised recently as the Top 5 Best Women Outgoing Students from India, conducted by IEEE Pune Section and Hope Foundation India.

Aby is a Product Engineer at UST working in the travel domain. With a keen eye for detail and a desire to improve, he is currently exploring more on the Python microservices and the GraphQL ecosystem.

Aby also has experience in resolving various business problems by combining purpose-led research and digital technology innovation with rapid prototyping.