Comments (5)
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.
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.
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.
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.
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)
- json is required? HOT 1
- Support for Toodledo 3 API HOT 5
- cannot delete tasks or notebooks HOT 1
- Make Poodledo a Package HOT 3
- Setup.py/submission to pypi? HOT 5
- Doc Suggestion HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poodledo.