Giter Site home page Giter Site logo

Comments (4)

fdncred avatar fdncred commented on May 18, 2024 1

sure, just put some comments around what you're changing so your changes aren't lost by the next person who wants to change them.

from nu_scripts.

fdncred avatar fdncred commented on May 18, 2024

As long as this works as you describe above, i think we'll be cool. I just commented on the PR.

from nu_scripts.

oatovar avatar oatovar commented on May 18, 2024

Hello, I just noticed today that this has made my completions extremely slow on a large repository that I work on. At any given time, there are hundreds of remote branches.

git branch -r | lines | length
14557

Would it be okay if we adjusted this to respect an opt-out variable? The git bash completions have some variables to configure similar behavior, and I think something like that may work in this case. For example, a variable like GIT_COMPLETION_IGNORE_REMOTE_BRANCHES could control whether the remote branch completions are computed.

from nu_scripts.

oatovar avatar oatovar commented on May 18, 2024

Sorry for the delay on the performance work for large repos. I was tinkering with the script and discovered that this was a lot harder than I initially thought. I did however, find something that I think might be beneficial to others. While thinking through a solution, I was trying to concurrently run different tasks using par-each. Unfortunately, the tasks require different inputs and perform different actions, so I wasn't able to do:

$in | par-each { |it| # ... }

What came to mind recently however, was that I could create an array of closures and have par-each execute do on each closure instead.

[
  { $a | par-each { |it| $it + 1 } },
  { $b | par-each { |it| $it + 2 } }
] | par-each { |c| do $c }

I have yet to test this out with live data, but I'm hopeful that this pattern can help in situations like these. I know Hack isn't a very popular language, but one thing that I do miss about it is the concurrent functionality which the above technique mimics.

from nu_scripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.