Announcement

Collapse
No announcement yet.

Questions on efslib

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    I think for 7.9.1, we can do a few simple functions:

    var blah = efsInternal("scjohnArrayReturn");
    var index0 = blah.getSeries(0);
    var index1 = blah.getSeries(1);
    var index2 = blah.getSeries(2);

    will also overload the current getSeries:

    var index0 = getSeries(blah, 0);
    var index1 = getSeries(blah, 1);

    index0, index1, index2 are each in individual Series object as well, except containing the values from the first, second and third of the Array you have returned.

    Comment


    • #17
      Hi Dion:

      That functionality would be very useful. Regarding the strings/array issue, would it at least be possible to return strings in a series object? Thanks.

      Chris

      Comment


      • #18
        Okay, I converted my efsInternal() to just a plain efs(). It worked but according to the Performance Monitor the EFS2 version took more time than the original EFS version.

        This is in contrast to inidcators that use efsInternal(). Those indicators, again accord to the Performance moitor are running sigificantly faster than there counter parts in the orifinal EFS version.

        Are the figures showen in the Performance monitor for EFS2 indicators accurate?

        Dion's post of a possible fix for 7.9.1 would seem to be the way to go; especially from an overhead point of view. I think I could live with using efs() in 7.9.0 as long as I know that a fix will be put in 7.9.1.

        Comment


        • #19
          Haven't had a chance to look into the feasibility of returning strings. We only have one week of development time for 7.9.1, so I'm thinking it will probably not be possible for 7.9.1.

          The extensions to getSeries for scjohn though are very trivial and should be no problem for 7.9.1.

          Comment


          • #20
            Is there a way to pass parameters to the initLib()? I am thinking along the lines of
            PHP Code:
            function initLib(param1param2param3) {
            debugPrintln("Param1 is " param1);

            Comment


            • #21
              Nope. Since initLib() is called automatically by the system, there is no opportunity for you to pass in parameters.

              However, you can make your own initLib() or any function name with parameters, and just call that in your preMain() function from the main EFS.

              Comment

              Working...
              X