Announcement

Collapse
No announcement yet.

Question re efslib's and memory use of loaded functions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Question re efslib's and memory use of loaded functions

    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

  • #2
    Apologies for posting this multiple times. Each time I selected Post Reply I received an error so I thought it didn't get posted.

    Comment

    Working...
    X