19.06.2018, 20:29
Hmm so yeah BitArray is smaller yeah, but is it faster than bool?
bools i believe are still 4 bytes in pawn and all a bit array is an array of well..bits.. (very useful for flagging etc..)
ysi actually has a neat little library (y_bitarray i believe) that has both y_iterate and y_groups support (made my days a heck-of-alot easier in the past) you should check it out i actually have a mode somewhere in my treasure chest written with (mainly) ysi and it's magic (i'll have to dig deep but i may release it if i can find it) too bad ****** went crazy lol |
If your concern is speed and still want to make the output file smaller, there are 2 more options:
• char-arrays • bit-flags Take a look here: https://sampforum.blast.hk/showthread.php?tid=216730 |
Originally Posted by Calisthenics
If your concern is speed and still want to make the output file smaller, there are 2 more options:
• char-arrays • bit-flags Take a look here: https://sampforum.blast.hk/showthread.php?tid=216730 |