Too many objects: Reducing memory overhead from Python instances

Every time you create an instance of a class in Python, you are using up some memory–including overhead that might actually be larger than the data you care about. Create a million objects, and you have a million times the overhead. And that overhead can … Read more

Similar

Building a Key-value database in Python

Introduction In this tutorial, we’ll walk through building a key-value database in python. The design is based entirely off of the bitcask project, with a few simplifications. The database will support 3 operations: PUT GET DELETE Here’s a sneak peek of... (more…)

Read more »