mIRC Home    About    Download    Register    News    Help

Print Thread
Hash table ---> window transfer #101925 02/11/04 03:36 PM
Joined: Nov 2004
Posts: 148
D
Dr_Brom_sung_ Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Nov 2004
Posts: 148
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.

Re: Hash table ---> window transfer #101926 02/11/04 06:58 PM
Joined: Mar 2003
Posts: 1,271
L
LocutusofBorg Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
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


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
Re: Hash table ---> window transfer #101927 02/11/04 07:00 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
No without an inefficient loop through $hget(). Somebody suggested a new switch for /filter to handle that, but it hasn't been added yet.

Re: Hash table ---> window transfer #101928 02/11/04 07:35 PM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
/filter file.txt @win
(ie with no *matchtext*) is just as fast as
/loadbuf @win file.txt


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Re: Hash table ---> window transfer #101929 02/11/04 10:25 PM
Joined: Nov 2004
Posts: 148
D
Dr_Brom_sung_ Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Nov 2004
Posts: 148
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?

Re: Hash table ---> window transfer #101930 03/11/04 05:47 AM
Joined: Jan 2003
Posts: 53
Z
Zonk Offline
Babel fish
Offline
Babel fish
Z
Joined: Jan 2003
Posts: 53
where did you get 133MHz SDRAM? :]