Menu

#195 Dynamic vs static sorting

Pascal
closed
nobody
None
3ReallyUrgent
2024-02-17
2022-05-31
Steve Keen
No

The BIS property price database illustrates nicely the case for dynamic sorting (sort which resets when the selector dot is moved to a different date) as an alternative to the current sort, which I characterise as static sorting.

1 Attachments

Discussion

  • Steve Keen

    Steve Keen - 2022-05-31

    Ravel file.

     
  • High Performance Coder

    • Milestone: Graeber --> Pascal
     
  • High Performance Coder

    • assigned_to: High Performance Coder
     
  • High Performance Coder

    This feature is implemented, but appears to have exposed a serious bug in the system. When scrolling through an axis via arrow keys with dynamic sorting enabled, minsky will crash after a while. Examining the entrails in a debugger indicates multiple addon threads running, which just simply should not be. It appears that electron is now running an event processing model that fires off another thread for each event, so that mean I will need to add a mutex lock on each call the the backend (which is really what the Javascript virtual machine should be doing). Hope this extra lock doesn't slow things down too much.

    I'll give a little more thought on this, as I wanted to work out a way of adding a thread termination signal to certain long running commands, so maybe we need to fix that first, before just adding the global mutex (sort of equivalent to Python's GIL).

     
  • High Performance Coder

    • status: open --> fixed
    • assigned_to: High Performance Coder --> nobody
     
  • High Performance Coder

    • Status: fixed --> closed
     

Log in to post a comment.

Auth0 Logo