Mercurial > code > home > repos > homeauto
view service/piNode/rdflib_pi_opt.py @ 1510:2b6e939c8b10
release 0.10.0
Ignore-this: d496a61c0cb8d85ac7b81dc405894cbf
darcs-hash:2b62ccdec55f949d7c77fff0d9e6b370d2726716
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Mon, 03 Feb 2020 22:08:54 -0800 |
parents | 99540f1a11f7 |
children |
line wrap: on
line source
import rdflib.plugins.memory def patchRandid(): """ I'm concerned urandom is slow on raspberry pi, and I'm adding to graphs a lot. Unclear what the ordered return values might do to the balancing of the graph. """ _id_serial = [1000] def randid(): _id_serial[0] += 1 return _id_serial[0] rdflib.plugins.memory.randid = randid