GithubHelp home page GithubHelp logo

Very slow startup on tdcli about poodledo HOT 5 CLOSED

handyman5 avatar handyman5 commented on August 22, 2024
Very slow startup on tdcli

from poodledo.

Comments (5)

handyman5 avatar handyman5 commented on August 22, 2024

It's not actually StringIO's fault; the delay comes from assembling the lexer that parses the task string. Plex (the lexer library I'm using) only causes a delay of a couple of seconds on my machine, but I can see where it would take a lot longer under other conditions.

I'll look into replacing plex with the built-in re.Scanner tool: http://www.evanfosmark.com/2009/02/sexy-lexing-with-python/. Thanks for the bug report!

from poodledo.

handyman5 avatar handyman5 commented on August 22, 2024

I've added a cache of the lexer object, so that once it's been generated it will be re-used between runs. It significanty improves performance on my machine. Can you please check it out and see if it helps on your end?

from poodledo.

punassuming avatar punassuming commented on August 22, 2024

Adam,

That seemed to really pick things up. One other problem I am having
is the need to add an app_id and app_token myself to the AppClient
class whenever I update the repo. Is there any way to add that stuff
into the rc file to prevent this?

Thanks,

Rich

On Fri, Nov 11, 2011 at 11:56 AM, Adam Compton
[email protected]
wrote:

I've added a cache of the lexer object, so that once it's been generated it will be re-used between runs. It significanty improves performance on my machine. Can you please check it out and see if it helps on your end?


Reply to this email directly or view it on GitHub:
#2 (comment)

Rich

from poodledo.

handyman5 avatar handyman5 commented on August 22, 2024

Great idea! I've added that to the latest commit. Please try it out and let me know what you think.

Thanks,
Adam

from poodledo.

handyman5 avatar handyman5 commented on August 22, 2024

The current code doesn't use the lexer (or its cache) anymore, and the other issue was addressed a year ago. Closing this ticket.

from poodledo.

Related Issues (7)

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.