Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は C で Python モジュールを作成しており、大規模なメモリ ブロック (おそらく 500 MB) を mmap するつもりです。Python インタープリターと同じプロセス空間で作業する場合に注意すべきことはありますか?
いいえ、大丈夫です。32 ビット システムでは、仮想メモリが不足するか、仮想メモリの断片化により、必要な数の巨大なファイルをマップするのに十分な大きさの 1 つのチャンクがない可能性があります。しかし、その落とし穴は CPython に限ったことではありません。