Maximal size of Variable

Find quick help here to get you started with Hollywood
Post Reply
ArtBlink
Posts: 484
Joined: Mon Nov 01, 2010 10:37 am
Location: Albert - France
Contact:

Maximal size of Variable

Post by ArtBlink »

Hello,

I want to use local variable to accelerate my MHE

I have an idea :

IF I load file and stock the entire file in local variable, i modify string in this local variable and after, i insert the value the variable data in texteditor, my editor can be more speeder but :

How many caracters can be insert in local variable?

I can insert approximatively 1000 line of code in one local variable (i test it and it work) but what is the maximal number of caractere that i can stock in local variable please?

So, i want to insert in local variable a hollywood script file

Limitations?

Thanks andreas ;-)
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Maximal size of Variable

Post by airsoftsoftwair »

It's only limited by the amount of RAM you have :) But when storing huge chunks of data in single variables you must do some housekeeping, i.e. set variables which you no longer need to NIL so that they can be garbage collected. Otherwise you'll run out of memory sooner or later.
ArtBlink
Posts: 484
Joined: Mon Nov 01, 2010 10:37 am
Location: Albert - France
Contact:

Re: Maximal size of Variable

Post by ArtBlink »

Ok

Thanks a lot
Post Reply