4 ms·
If the data structures are static, you can build them, then fork off a bunch of python processes. They will all have the data, but it will only be in memory on
by anewaccountname 18y ago
If the data structures are static, you can build them, then fork off a bunch of python processes. They will all have the data, but it will only be in memory once. Just make sure to never invoke GC after that point... (unless python's GC isn't compacting). Also make sure to never reference anything, or you will increment it's reference count and trigger copy-on-write...
- fauigerzigerk 18y agoThe data structures are not static. It's effectively an in memory database, so the data keeps changing.