mIRC Homepage
Posted By: Dr_Brom_sung_ Hash table ---> window transfer - 02/11/04 03:36 PM
Usualy, when I want to transfer the data I have in a hash table, I use:
/hsave -n hashtable filename.ext
/filter -fw filename.ext @window


I would like to move teh data directly from the hash table to the window. Is it possible at all?

Thank you.
Posted By: LocutusofBorg Re: Hash table ---> window transfer - 02/11/04 06:58 PM
I don't know of an option like that. Just another suggestion: if you're just loading everything, you should use /loadbuf - it'll be faster, and it was designed for that operation. If you don't need filtering, why use /filter smile
Posted By: Online Re: Hash table ---> window transfer - 02/11/04 07:00 PM
No without an inefficient loop through $hget(). Somebody suggested a new switch for /filter to handle that, but it hasn't been added yet.
Posted By: qwerty Re: Hash table ---> window transfer - 02/11/04 07:35 PM
/filter file.txt @win
(ie with no *matchtext*) is just as fast as
/loadbuf @win file.txt
Posted By: Dr_Brom_sung_ Re: Hash table ---> window transfer - 02/11/04 10:25 PM
Thanks.

I know that /filter and /load bug have the same speed, cause I tested it before.
I have created a big text file and used /buffer and /filter and checked how much time it takes to load it to the window (And it takes a lot of time with big files).

I assume that it takes so much time because the data is being read from the HD instead of the RAM.

I made a test of a loop which repeats lots of time and checks with an IF statement if the data inside a hash tabe is equals 1. I did the same with a text file.
The time it took to do the same thing using hash table was 14% of the time it took to do it with a text file (P3 600 with 133MHz sdram. I assume that faster computers will have it even like 5%).

I think that the same applies to using /filter and transfering the data directly from hash table to a window. Am I right?
Posted By: Zonk Re: Hash table ---> window transfer - 03/11/04 05:47 AM
where did you get 133MHz SDRAM? :]
© mIRC Discussion Forums