From 352d0747da8ccf6d58144641ceeb0070553ef079 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Fri, 12 Jun 2015 22:30:56 +0200 Subject: Add note re. __slots__. --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 03c87a3..c606e5f 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,11 @@ configurations generated by Kconfiglib with configurations generated by ## Misc. notes ## + * Using [`__slots__`](https://docs.python.org/3.1/reference/datamodel.html#slots) + on classes would speed things up a bit and save memory. (genboardscfg.py went + from 1.6 to 1.4 seconds on my system for example.) It'd remove some flexibility + though. + * Kconfiglib works well with [PyPy](http://pypy.org). It might give a nice speedup over CPython when batch processing a large number of configurations, as well as when running the test suite. -- cgit v1.2.3