https://github.com/bast/cffi-mem-alloc-example
Demo of how to create or fix a memory leak when garbage collecting.
https://github.com/bast/cffi-mem-alloc-example
cffi cpp memory-management python
Last synced: about 2 months ago
JSON representation
Demo of how to create or fix a memory leak when garbage collecting.
- Host: GitHub
- URL: https://github.com/bast/cffi-mem-alloc-example
- Owner: bast
- License: mpl-2.0
- Created: 2017-05-26T17:03:09.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-26T17:24:51.000Z (about 9 years ago)
- Last Synced: 2026-01-27T20:26:21.379Z (5 months ago)
- Topics: cffi, cpp, memory-management, python
- Language: Python
- Size: 108 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# Client-side or library-side memory allocation with [Python CFFI](https://cffi.readthedocs.io)?
Client side is more general but we also wish a Pythonic API.
Check out [test.py](../master/test.py).
## How to build and run the example
```
mkdir build
cd build
cmake ..
make
cd ..
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
EXAMPLE_BUILD_DIR=build python test.py
```