Re: [UV] Memory resident hash tables/files

2004-03-23 Thread FFT2001
In a message dated 3/23/2004 2:05:41 AM Eastern Standard Time, [EMAIL PROTECTED] 
writes:

 I would like to store records from small static parameter files that are accessed 
 frequently in a memory resident hash table in the common area. What would it take to 
 achieve this in UV BASIC? What would it take for IBM to introduce internal hashtable 
 type variables (such as those found in some C++ 
 class libraries) in UV.

Yes you can effectively.
Write one Phantom routine that selects these files, one by one and loops through every 
record just reading it then moving on.  This will smoothly keep the records in 
memory even if your actual user-accessing of them is chunky.
   And yes you can create your own internal hashtable.  Just DIM an array to the 
modulo you want and then apply the standard routine to determine which cell your id 
goes to and put it there or get it from there.
Will smooth not chunky Johnson
-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


RE: [UV] Memory resident hash tables/files

2004-03-23 Thread John Jenkins
Marco

Try a RAMdisk - works a treat.

If you are sure you *need* internal hashtables in memory you can use them
via the GCI interface by cutting your own C code around the C++ functions
you mentioned.

I would be very cautious about needing these - if they are relatively small
they are likely to be memory cachedlittle benefit

Take a GOOD look at the rest of your system first - it's surprising what you
can find ;-)

Regards

JayJay

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Marco Manyevere
Sent: 23 March 2004 07:06
To: [EMAIL PROTECTED]
Subject: [UV] Memory resident hash tables/files

Hi All,
 
I would like to store records from small static parameter files that are
accessed frequently in a memory resident hash table in the common area. What
would it take to achieve this in UV BASIC? What would it take for IBM to
introduce internal hashtable type variables (such as those found in some C++
class libraries) in UV.
 
Regards, Marco.


-
  Yahoo! Messenger - Communicate instantly...Ping your friends today!
Download Messenger Now
--
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users