Data storage - listeners or arrays?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Data storage - listeners or arrays?

Post by Rookie One.pl »

As in topic - which way of data storage is more economical (in terms of memory and CPU usage)? Spawning listeners or using associative arrays?
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

I think arrays are faster... mostly a guess though.

Know that when spawning listeners, you'll have to remove them manually (when you don't need em anymore) or you have a memory leak.
Image
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Yeah, that's what I've been guessing as well. Thanks, m8. :) I'll have a look at the FAKK source, too, maybe I'll find something interesting.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Post Reply