-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Library types are too heavy to work with #71
Comments
@orihomie C#? What are you doing with all these work items? |
@Boltyk yes, run_wiql, that task was sort of statistics. I've said kind of C# Lazy type where you can get parts of object not instantly on initialization of object, but on demand of each part you want to get. And this is only idea, I dont know for now if it's good or bad. |
Not sure I've got the problem. So you run_wiql and it gives you list of work items. Then you try to get them one by one for some processing. Was interested by myself about laziness in Python recently. |
No, it's not just ids, after wiql runs every id turns into WorkItem-type instance. |
Ough, just having list of these work items as a python workitem objects in a one giant list is a problem itself... Interesting |
It is possible to run that id-workitem casting asynchronously, that would be a bit speed up, but that's not for this issue. |
I was talking about this kind of laziness: |
The issue #14 can help you get a "light" WI. |
@orihomie did you get a workaround? |
I was able to do some kind of task to select about 2.5 thousands workitems (by work item query), and there was one big problem I was tryin to solve - to parse them ASAP.
And that was very ridicilous experience:
my idea was to parse them asynchronously and that taken about 2-3 hours for me to get the problem: heavy workitems are hardly to parse asynchronously on multiprocessing pool.
And the second idea was to take only fields I've needed then parse them on multiproc pool and that worked perfectly for about 20 seconds on the main processor without any pools.
This is where I've got an idea - to make workitems more 'lighter'.
For now I dont know how to make it real, only thought to make it some kind of Lazy from C#, but could anyone give a suggestion if its real or not and if it's ok to deal with such tasks as I did?
The text was updated successfully, but these errors were encountered: