store object best practice

Hi All,

I have a small application that lets users open microsoft office
applications like word excel from a remote server and lets save back
to same server. I display the files in a tree structure . The loading
process of the file in treectrl is becoming a bottleneck and i wanna
speed up the process.

what is the best way shuld i store the treectrl or entire dialog
object. how should i store the object. Any suggestions on how i should
proceed.

Do let me know if someone has a total different approach to this. I
tried threading still the loading is time consuming as it is SOAP
calls to server.

Thanks
Thomas

Hi Thomas,

Hi All,

I have a small application that lets users open microsoft office
applications like word excel from a remote server and lets save back
to same server. I display the files in a tree structure . The loading
process of the file in treectrl is becoming a bottleneck and i wanna
speed up the process.

what is the best way shuld i store the treectrl or entire dialog
object. how should i store the object. Any suggestions on how i should
proceed.

Do let me know if someone has a total different approach to this. I
tried threading still the loading is time consuming as it is SOAP
calls to server.

Thanks
Thomas

This is just purely hypothetical, but here's what I would try:

I assume you have some kind of data object, like a list of paths. Save
that locally using pickle or ConfigParser. Then when you run the
program, it can load the local copy. In the background, spawn a thread
or process sends your SOAP calls and gets the latest copy of the file
paths and then update your local saved copy and the tree control with
the information. It probably won't be seamless, so you might just have
it pop-up a tooltip that says something like "New files found! Would
you like to update?" or something.

- Mike

ยทยทยท

On Aug 22, 3:49 pm, thomas <tctho...@gmail.com> wrote: