Hello,
I see that it is possible to use mmapfile.pyd of win32all. The same is
mentioned in http://www.python.org/windows/win32/#mmapfile.
Unfortunately I could not trace any example using mmapfile.
Any example or link to an example will be of help. I am interested to
learn how to achieve efficient sharing of data between separate
processes using mmapfile.
Regards,
/Srijit 1 3076
"Srijit Kumar Bhadra" <sr****@yahoo.c om> writes: Hello, I see that it is possible to use mmapfile.pyd of win32all. The same is mentioned in http://www.python.org/windows/win32/#mmapfile.
Unfortunately I could not trace any example using mmapfile.
Any example or link to an example will be of help. I am interested to learn how to achieve efficient sharing of data between separate processes using mmapfile.
You can even create a shared memory mapped file for sharing data
between processes on Windows in pure Python. It's not really obvious
from the mmap description, but calling
shmem = mmap.mmap(0, 32000, "spam")
creates (or opens, if it already exists) a shared memory block,
not based an any existing file. In other words, the fileno (first
parameters) must be 0, and the last one specifies the system wide name
of the shared memory block.
Thomas This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Phil Schmidt |
last post by:
I'm attempting to follow the instructions at
http://sebsauvage.net/python/mingw.html, without luck.
I have Python 2.3, MinGW 3.2.3, ans SWIG 1.3.19.
I get an export error on "initexample" when attempting the example. Do
I need some extra switches to get SWIG to create that function? Or is
it something else?
Here's my example build:
|
by: Luc Saffre |
last post by:
Hello,
I had a strange problem when freezing (using either py2exe or McMillan
installer) a script that imports reportlab (which imports PIL (which
imports FixTk))).
- Python 2.3.3c (also with Python 2.3)
- PIL 1.1.4
- Installer or py2exe : latest versions.
|
by: Joel Foner |
last post by:
Is there any support for memory mapped files in the .Net framework? I have
an application that would be made much easier if I had an easy way to read
an existing memory mapped file generated by another application, and could
write another MMF back in response...
Any and all ideas welcomed.
Thanks in advance,
Joel
|
by: James Aguilar |
last post by:
Oh wise readers of comp.lang.python,
Lend a newbie your ears. I have read several old articles from this
group about memory mapping and interprocess communication and have
Googled the sh** out of the internet, but have not found sufficient to
answer my questions.
Suppose that I am writing a ray tracer in Python. Well, perhaps not a
ray tracer. Suppose that I am writing a ray tracer that has to update
sixty times a second (Ignore...
|
by: Carl Mackey |
last post by:
hi, i'm new to this list and new to python as well.
i have a question on the memory mapped file ability python has. when i
use a mmap on a file, will it copy the whole thing to ram or just
whatever part of it i'm working on? basically, i'm wondering if it would
be ok for me to have multiple mmap's open on very large files as i read
or write from them.
| |
by: PMarino |
last post by:
I'm an old Win32 guy, so I may be completely off-base here, but is there any
support for Memory-mapped files in C#?
I'm actually trying to get around a limitation with Windows Authorization
Manager. Right now, the security information contained in AzMan is either
stored in Active Directory or an XML file. I'd like to be able to store it
in a database, and populate a memory-mapped file (or it's equivalent) from
the DB when the file is...
|
by: Frank Rizzo |
last post by:
It is common knowledge that 32-bit processes can use up to 2GB of RAM.
This has been my experience with native (vb6, c++) apps. However, .NET
apps tend to crash with Out of Memory errors whenever they approach 1.6
to 1.7 GB of RAM. Is the rest of the memory space between 1.7 GB and 2
GB is taken up by the runtime? 300mb? That cannot be since I've seen
winform apps run (not fast, but still) on systems with 128mb.
And if you set your...
|
by: Chris Brooks |
last post by:
Hi,
I would like to read directly from a tar file into memory so I can
manipulate a file (quickly) and write its changes out to another file. I
thought I could do something like:
#!/usr/bin/env python
import tarfile
import mmap
|
by: Chris Brooks |
last post by:
Jean-Paul Calderone wrote:
Actually, I want the contents of the tar uncompressed and untarred. So, for
example, I might be working with image data that has to go through several
transformations. I essentially want to pull the image out of the gz'ed tar
and into memory so I can work on it (as a file) and later write the changed
contents to somewhere else. But I don't really want to uncompress/untar and
save the file to disk and then...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |