Mercurial > code > home > repos > homeauto
view service/piNode/rdflib_pi_opt.py @ 1449:a2bc6602a0db
dockerfile deps
Ignore-this: b12d406bc1fee7c07092d273904b8b3d
darcs-hash:8b40b2634a6df26e0de4f6ef31c6ef2aabf14c31
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Wed, 25 Sep 2019 17:25:19 -0700 |
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