Announcement

Collapse
No announcement yet.

EFS Performance Issue

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

  • EFS Performance Issue

    Hello,

    I have recently been working with the attached efs. Whenever I attach the efs to a chart it severly slows down the time it takes to move from the 30min time interval to the daily interval. I know its this efs because when I remove it moving from one time interval to another is much quicker.

    I was wondering if someone would be kind enough to just check it out and let me know if there is anything I can do to fix it.

    Thanks a lot.

    Cheers

    Carlton
    Attached Files

  • #2
    The best first step would be to comment out the debugPrintln statement.

    Comment


    • #3
      Hi David,

      I have just commented out the statement, unfortunately it still takes forever - even when refreshing the screen it takes an inordinate amount of time.

      Carlton

      Comment


      • #4
        Ok, I assume you reloaded the fs.

        Try

        var Vol = volume()

        Comment


        • #5
          Yes, I reloaded the fs.

          Should I place the statement you mentioned within the main function? Or above it?

          Thanks

          Carlton

          Comment


          • #6
            Carlton,

            Dave nailed your problem IMHO, just to add, here is some history on how debugPrintln can adversly affect performance ==>> in this link

            Comment


            • #7
              The statement replaces the similar statement on line 19

              Comment


              • #8
                Beautiful,

                Its working fine now.

                Once again you guys have come up trumps.

                Cheers

                Carlton

                Comment


                • #9
                  David,

                  Just a quick question. By replacing line 19 with var Vol = volume(), what have I achieved?

                  Carlton

                  Comment


                  • #10
                    As I recall, getValue functions are slow, and volume() is fast.

                    You have replaced a slow function with a fast one.

                    Comment


                    • #11
                      David,

                      That was a silly question - I know what I have achieved. I guess what I'm trying to say without sounding negatively is "have I somehow reduced the effectiveness of the efs now that I have replaced line 19"?

                      Cheers

                      Carlton

                      Comment


                      • #12
                        David,

                        It turns out I didn't reload the fs properly after commenting out the debug statement.

                        Commenting out the debug statement was all I needed to do.

                        Thanks again guys.

                        Cheers

                        Carlton

                        Comment

                        Working...
                        X