summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2015-06-12 22:30:56 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2015-06-12 22:30:56 +0200
commit352d0747da8ccf6d58144641ceeb0070553ef079 (patch)
tree8fe7dda8334b4a88e091e2c36efdf67330ae09ab
parent2f319b8a713398ae93ca76d7e40b413bc88a7719 (diff)
Add note re. __slots__.
-rw-r--r--README.md5
1 files changed, 5 insertions, 0 deletions
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.