Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Size Variables
#1
I will start off with a question... How many of you believe that you are going to have more than 32,000 players on one server.

1. Change all "byval index as long" to "index as integer" which should half the memory consumption for all that.

2. Change lcase(parse(0)) = "
to case

3. In type recs or even anywhere unless you are going to have more than 32,000 of something change from long to integer which will have the amount of memory it takes up.

4. Change all booleans to byte and use 0 and 1
5. Even better if you use the bitfield system (just search it) *props

6. If you are always going to get a value between 255 and 0 then change longs or integers to byte. that should decrease that memory consumption by down to 1/8th

7. Don't use fixed length strings e.g "* MAX_LENGTH" just remove it you dont need it. if you want a max character property change that in the textbox properties.

8. if you use exit sub anywhere its easier just to use select case.

I no theres more but i forget lol Tongue
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)