GithubHelp home page GithubHelp logo

vcprompt slow on large repos about vcprompt HOT 5 CLOSED

djl avatar djl commented on August 29, 2024
vcprompt slow on large repos

from vcprompt.

Comments (5)

gregglind avatar gregglind commented on August 29, 2024

For solutions, maybe wrap subprocess call with a timeout, as in one of these solutions:

http://stackoverflow.com/questions/1191374/subprocess-with-timeout

from vcprompt.

lkraav avatar lkraav commented on August 29, 2024

This is my... not sure if solution or workaround, for this problem:

lkraav@a22e32e

from vcprompt.

djl avatar djl commented on August 29, 2024

Added a crude version in 6625c7b.

-t, --timeout or VCPROMPT_TIMEOUT can be used to set the timeout, which must be an integer. The default is 0 (no timeout). If the timeout is reached, vcprompt will exit with status 126 and no output.

I do like the idea behind @lkraav's solution. I'll see if I can come up with something that doesn't involve littering the file system with extra files (and extra stuff in a project's .gitignore).

from vcprompt.

lkraav avatar lkraav commented on August 29, 2024

Yeah, litter is a concern. I don't much dig any lag in my systems, either. But it's one or the other, pick your poison.

from vcprompt.

djl avatar djl commented on August 29, 2024

Added millisecond support in 6ff4ecd for Python 2.6+. Older version just fall back to standard per-second intervals.

I think this can be closed now :)

from vcprompt.

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.