Menu

#312 Ravel v19 - ravel responds very slowly

Pascal
closed
None
2Critical
2023-02-03
2023-01-28
TomScat
No

I have restarted my computer and started a new system in Ravel.
I include 1 dataset (CAPE).
Wiring the variable to the graph takes several minutes before it is executed. In the meantime I see the CPU usage increase to over 20%.

1 Attachments

Related

Ravel: #312

Discussion

  • Steve Keen

    Steve Keen - 2023-01-29
    • Priority: 6normal --> 2Critical
     
  • High Performance Coder

    Definitely to do with date processing. It is a choice between explicitly specifying the date format (%Y-%m in this case), and leaving the date format blank, since the date fields appear in descending order. Leaving the date field blank is orders of magnitude faster than specifying it.

    This is handled by my code, (I had to write a special handler for this case to handle dates like 1/2/22) so it looks like I have some optimisation to do. It should run at least as fast as the boost code!

     
    • Steve Keen

      Steve Keen - 2023-02-02

      This sounds like a reason to NOT get the user to specify the date format at
      all, unless the format is something very non-standard.

      On Thu, Feb 2, 2023 at 5:56 AM High Performance Coder hpcoder@users.sourceforge.net wrote:

      Definitely to do with date processing. It is a choice between explicitly
      specifying the date format (%Y-%m in this case), and leaving the date
      format blank, since the date fields appear in descending order. Leaving the
      date field blank is orders of magnitude faster than specifying it.

      This is handled by my code, (I had to write a special handler for this
      case to handle dates like 1/2/22) so it looks like I have some optimisation
      to do. It should run at least as fast as the boost code!


      Status: open
      Milestone: Pascal
      Created: Sat Jan 28, 2023 08:18 PM UTC by TomScat
      Last Updated: Sun Jan 29, 2023 10:19 AM UTC
      Owner: nobody
      Attachments:

      I have restarted my computer and started a new system in Ravel.
      I include 1 dataset (CAPE).
      Wiring the variable to the graph takes several minutes before it is
      executed. In the meantime I see the CPU usage increase to over 20%.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/minsky/ravel/312/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Ravel: #312

  • High Performance Coder

    There's also a minor thing that the guess file format code does not update the separator input box, but I'll raise a separate ticket for that.

     
  • High Performance Coder

    • status: open --> closed
     
  • High Performance Coder

    Well that was easy. The Ravel codebase was using a custom strptime function to sort dates, which curiously was just delegating to the boost time_facet code. Now that civita has been moved to live underneath Ravel, I swapped the use of strptime for the equivalent Civita calls, which have had substantial optimisation performed on them already. Now this example opens "instantly", ie so fast, I couldn't measure how fast it is.

     

    Last edit: High Performance Coder 2023-02-03
    • TomScat

      TomScat - 2023-02-03

      Ok. That isn't in the v20 yet, correct?

       
      • Steve Keen

        Steve Keen - 2023-02-04

        No Tom, which is one reason to look forward to version 21.

        Great news Russ. Speed is something we need to focus on as stability is
        largely behind us. This is a great leap forward, so to speak...

         
  • High Performance Coder

    • assigned_to: High Performance Coder
     

Log in to post a comment.