Hello,
Let's say I create an efslib (MyLib.efslib) with functions A, B, and C in it.
I then do:
var myLib = addLibrary( "MyLib.efsLib" );
Question 1) which of the following is true regarding when functions A, B, and C are loaded into memory?
a) they all get loaded when the addLibrary is executed
b) they don't get loaded until referenced (e.g., myLib.A())
c) something else
Question 2)
If the above addLibrary() is executed in each of several open charts or Watchlists is:
a) one copy of functions A, B, C loaded and shared across the charts/watchlists
b) each chart/watchlist loads it's own copy
I ask as I want to understand how what I put in an efslib impacts memory usage.
Thanks
Let's say I create an efslib (MyLib.efslib) with functions A, B, and C in it.
I then do:
var myLib = addLibrary( "MyLib.efsLib" );
Question 1) which of the following is true regarding when functions A, B, and C are loaded into memory?
a) they all get loaded when the addLibrary is executed
b) they don't get loaded until referenced (e.g., myLib.A())
c) something else
Question 2)
If the above addLibrary() is executed in each of several open charts or Watchlists is:
a) one copy of functions A, B, C loaded and shared across the charts/watchlists
b) each chart/watchlist loads it's own copy
I ask as I want to understand how what I put in an efslib impacts memory usage.
Thanks
Comment