Guest X-Fusion Posted February 10, 2007 Report Share Posted February 10, 2007 Yeah, I'd use INI for an aop anyway. Link to comment Share on other sites More sharing options...
The Gate Keeper Posted February 11, 2007 Report Share Posted February 11, 2007 i wouldn't recommend doing a lot of hashing as it does use a bit of ram/cpu when accessing them constantly. Link to comment Share on other sites More sharing options...
Guest Travis Posted February 11, 2007 Report Share Posted February 11, 2007 hash is fastest besides using windows. A user list hash table shouldnt have more than 30 entries. Thats not much of a hash table. It takes a lot less code using hash tables. You guys do as you wish, but I say hash is undoubtedly better than ini. Link to comment Share on other sites More sharing options...
Cryton Posted February 11, 2007 Report Share Posted February 11, 2007 What gate tells is right ,alot of hashing does use ram. Link to comment Share on other sites More sharing options...
Guest Travis Posted February 11, 2007 Report Share Posted February 11, 2007 Yes I remember from GD5. But what is a lot of hashing? My script typically has 7 tables. Plus a table for each room's access list if you are an op. All a grand total of 7 kb's of info. 2 of those tables would be virtually empty. 2 of those tables would be rather full. (NickLog) I have not noticed any issues with a 1.3 Ghz Athlon and 512 Mb of RAM. Does this sound bad? My next version I will change at least 3 hash tables to windows. Link to comment Share on other sites More sharing options...
The Gate Keeper Posted February 12, 2007 Report Share Posted February 12, 2007 (edited) arr, you know... whether the hash table is full or empty, they still use "ALL" of the reserved space. With hash tables, you reserve space for that particular table, so whether that table is empty or full, you still have that space reserved, and therefore, that space is in use by the ram and/or cpu. So really, having a lot of tables that aren't required, well not really advised. Plus a table for each room's access list if you are an op. I remember hearing from someone (can't remember who), but i would think that it would be better to have a window to do this. I hear windows use less ram/cpu, but it is just as quick to access as a hash table. Edited February 12, 2007 by The Gate Keeper Link to comment Share on other sites More sharing options...
Guest X-Fusion Posted February 12, 2007 Report Share Posted February 12, 2007 Windows CAN be quicker, depending on how you use them. If your loading a list from a text file, it can take a long time if its a large text file (for things such as nick loggers.) The only thing I really use windows for is autojoins and mp3 players. Everything else is hash ini and texts. Link to comment Share on other sites More sharing options...
The Gate Keeper Posted February 12, 2007 Report Share Posted February 12, 2007 yea, but really, how many entries will you have in an access list? 200? And it isn't like you'll be constantly accessing it, and even if you were, it would be alright, cause you wouldn't be making reference to a text file at all or not. Link to comment Share on other sites More sharing options...
Guest X-Fusion Posted February 12, 2007 Report Share Posted February 12, 2007 Yea, I agree, hash can be very laggy when accessing those kinds of things. Quite frankly, for entries I'd use a text file. Link to comment Share on other sites More sharing options...
Cryton Posted February 12, 2007 Report Share Posted February 12, 2007 I remember hearing from someone (can't remember who), but i would think that it would be better to have a window to do this. I hear windows use less ram/cpu, but it is just as quick to access as a hash table. I hope we discussed about that gate . Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now