Jump to content

zjn0505

Member
  • Posts

    11
  • Joined

  • Last visited

Reputation Activity

  1. Like
    zjn0505 reacted to deanishe in Pin one item on top and sort others?   
    Hmm. What I would probably do there is leave UIDs on as long as the user’s query isn’t a complete, valid IP address and turn them off as soon as it is.
     
    So it first works as a query to filter the history using Alfred’s sorting, but if the query is a complete IP address, that’s shown as the top result (“do X with xx.xx.xx.xx”) while the history is shown below sorted by length of prefix match.
     
    So if you enter “10.0.0.1”, “10.0.0.10” should be at least near the top where you can action it with CMD+<NUM>.
     
    Not so good if you’ll have whole subnets in the history, I suppose.
  2. Like
    zjn0505 reacted to deanishe in Speed and compiled workflows   
    The thing with Python is the startup time. If you’re using my library, for example, it takes ~0.05s to load Python and import the libraries.
     
    0.05s is definitely perceptible.
     
    As far as optimising Python workflows goes, I focus on caching and lazy imports.
     
    They're always going to be noticeably slower than compiled workflows, though.
     
    I mostly use Go these days. It’s somewhat more effort to write than Python, but 20x faster.
×
×
  • Create New...