[Python-Dev] CPython optimization: storing reference counters outside of objects

Sturla Molden sturla at molden.no
Tue May 24 20:31:27 CEST 2011

Den 24.05.2011 17:39, skrev Artur Siekielski:
> Disk access is about 1000x slower than memory access in C, and Python
> in a worst case is 50x slower than C, so there is still a huge win
> (not to mention that in a common case Python is only a few times
> slower).

You can put databases in shared memory (e.g. Sqlite and BSDDB have options
for this). On linux you can also mount /dev/shm as ramdisk. Also, why
do you distrust the database developers of Oracle et al. not to do the
suffient optimizations?


More information about the Python-Dev mailing list