YSI gives high amx size?
#1

When i use any of YSI library includes.
The amx script size gets higher. Or sometimes it becomes 5,000kb. While the pwn has 12kb.
If i remove YSI the amx size goes down.

I really need help. I've to recompile scripts which that time has 900kb (FunGaming) but now when i compile it.
It gives 6,000kb AMX Size. Anyway if you're going to ask me what is the version of YSI i'm using. The 3.1 which is synced development i think?
Reply
#2

Don't include the whole YSI, only the includes you need.
Reply
#3

YSI includes are big, try to open Y_INI.inc for example, it's about 1.4k lines, not to mention multi demention arrays (not sure if exists in YSI a lot).
So yea nothing wrong with your compiling size.
ADD: don't use #include <YSI>
Just include the part of YSI you need, for example #include <YSI\Y_INI>
Reply
#4

No i don't think it is ordinary.

I'm trying to create a filterscript which uses YSI.

For Example

pawn Код:
#include <YSI\y_ini>
And if i use some of INI_Int, INI_String or INI_ParseFile and add some variables.
The amx size become so huge.
Reply
#5

Arrays? if you have something like new v_array[500][500]; that will take memory.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)