How to reduce the data size. It's about 100M [Need Help]
#2

It's not much of a problem unless you run out of space.

However, there are some "tricks" to do it anyway.

If you're running for example a 500 slot server, you can cut down the usage by re-defining MAX_PLAYERS at the top of the script (after including a_samp) to 500. So all Arrays with a MAX_PLAYERS dimension will be half as big.

Also not using exorbitant limits (for example, say you have 30 active Factions, but your MAX_FACTIONS define is 1000, define it to 50 or similar - extreme example but you get the idea).

If you just have a lot of data to store and there is no way of cutting that down, you can also redesign some systems to not have all data available at all times. For example, put the actual data, most importantly strings, into a (My)SQL Database and request it when needed. This doesn't make sense for systems that are constantly in use, but I'm sure you will find some Arrays that you could store elsewhere.

Then there are also Data Container Plugins which can be useful. They are always slower than PAWN Arrays/Variables but for some systems this wouldn't be noticable.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)