Re: The IPC::ShareLite is very slow than fetch data from file ??



> Why are you creating the shared memory object in a loop?

Just for testing.

> Also, the key is supposed to be an integer or a 4 character string, not
> a file name.

I know . but it will erase the character that the length >4.

> Finally, why are using shared memory when you don't seem to be sharing any
> memory?

Ok. I put some static html or conf to sharememory.




<xhoster@xxxxxxxxx> ¦b¶l¥ó news:20051025132421.197$NM@xxxxxxxxxxxxxx ¤¤¼¶¼g
....
> "sonet" <sonet.all@xxxxxxxxxxxxx> wrote:
>
>
> Subject is: Re: The IPC::ShareLite is very slow than fetch data from file
> ??
>
> Yes, and my yugo gets bad gas mileage when I'm dragging a piano around
> behind it. What's your point?
>
> ....
> > #!/usr/local/bin/perl
> >
> > use IPC::ShareLite;
> > for ($i=0;$i<=1000;$i++){
> > $share = new IPC::ShareLite( -key =>'test.conf',
> > -destroy => 'no' ) or die $!;
>
> Why are you creating the shared memory object in a loop?
>
> Also, the key is supposed to be an integer or a 4 character string, not
> a file name.
>
> Finally, why are using shared memory when you don't seem to be sharing any
> memory?
>
> Xho
>
> --
> -------------------- http://NewsReader.Com/ --------------------
> Usenet Newsgroup Service $9.95/Month 30GB


.



Relevant Pages

  • Re: Is this the correct way to extend POXIS shared memory?
    ... > IF (need more shared memory?) ... > END LOOP ... Mapping in the new part should be OK. ... [I assume the real code has error checking on every call?] ...
    (comp.unix.programmer)
  • Re: Pointer within shared memory
    ... > calls map for the same shared memory object. ... > different from mmap, but whatever the address would be, can be ... one integer and another lets say integer pointer which wud ...
    (comp.unix.internals)
  • Pointer within shared memory
    ... calls map for the same shared memory object. ... different from mmap, but whatever the address would be, can be ... one integer and another lets say integer pointer which wud ...
    (comp.unix.internals)
  • Pinter within shared memory
    ... calls map for the same shared memory object. ... different from mmap, but whatever the address would be, can be ... one integer and another lets say integer pointer which wud ...
    (comp.unix.internals)
  • Re: Pointer within shared memory
    ... > calls map for the same shared memory object. ... one integer and another lets say integer pointer which wud ... When a process attaches a shared memory segment (say of length 1000 ...
    (comp.unix.internals)