resource consumption

Find quick help here to get you started with Hollywood
Post Reply
sinisrus
Posts: 222
Joined: Tue Apr 21, 2015 5:43 pm

resource consumption

Post by sinisrus » Wed Oct 25, 2017 6:04 pm

Hello,

is there a way to know which place in the script consumes the most?

Thank you

User avatar
airsoftsoftwair
Posts: 2531
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: resource consumption

Post by airsoftsoftwair » Thu Oct 26, 2017 10:48 pm

What do you mean by "place"?

sinisrus
Posts: 222
Joined: Tue Apr 21, 2015 5:43 pm

Re: resource consumption

Post by sinisrus » Fri Oct 27, 2017 10:05 am

...which part of the code consumes the most

Bugala
Posts: 687
Joined: Sun Feb 14, 2010 8:11 pm

Re: resource consumption

Post by Bugala » Fri Oct 27, 2017 3:48 pm

Not directly, but depending upon command, you can try looping it several times and see how much time it takes.

For example if you have graphics, you could draw and remove that same graphic thousand times and see how much time it took, or if you have some calculations, you can do taht same calculation maybe billion times? and see how much time it took, and same with some general commands, make a guess how much time that command takes and then do that command thousand to billion times and measure how long it took.

It isnt very handy way to do it, but that is one way to get some info about it.

And of course you can also keep repeating some subroutines of yours, like if there is something like a page change subroutine you have made, you could do that thousand times and see how long it takes, then maybe change couple of commands there and measure again how long it takes to do that subroutine thousand times.

Code: Select all

for n = 1 to 1000
mysubroutine()
next

User avatar
airsoftsoftwair
Posts: 2531
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: resource consumption

Post by airsoftsoftwair » Sun Oct 29, 2017 10:45 pm

Well, code itself doesn't consume much space... it's what the code does that consumes space :)

Post Reply