From the course: Effective Serialization with Python
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge: Trade objects size - Python Tutorial
From the course: Effective Serialization with Python
Challenge: Trade objects size
“
(upbeat music) - [Narrator] We have a list of traits. Each trait is a dictionary with time, which is timestamp, a symbol, which is a string, a volume, which is an integer, a price, which is a flow and a by flag, which is a Boolean value, right? Write the protocol buffer definition file for a trade. Then encode all the trades and print out how many bytes it takes to encode all of them.