in reply to Re: Improving script that uses xmllint to validate
in thread Improving script that uses xmllint to validate

Now the question is - is there any way to 'pin' the created hash structure to memory so that any process making use of the data can refer to it using some 'memory namespace'.
Whats that mean? Maybe I'm ignorant, but isn't that how every program works?
  • Comment on Re^2: Improving script that uses xmllint to validate

Replies are listed 'Best First'.
Re^3: Improving script that uses xmllint to validate
by matrixmadhan (Beadle) on Dec 28, 2008 at 12:14 UTC
    Hash gets created in the memory and will stay as long as the instance ( process ) that built is resident in the memory.

    What am looking for is -
    Process 'A' is spawned Build hash data structure with 1 M entries Assign a namespace ( example name : h-m1 ) to the above Now process 'A' dies off, but h-m1 should still be resident in the mem +ory that is they have to be resident even after the process which cre +ated terminates.
    Now when another instance of process 'A' is spawned, without having to reconstruct the hash data structure with 1M entries, it should simply do a lookup using the namespace 'h-m1' ( or something like that )

    Am trying to achieve some optimization on the time taken to construct the hash of 1M entries which is a big win for my script

    Is that possible? Many thanks in advance :)