Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting Existing application to Multi Threaded App
Message
From
23/12/2013 13:18:34
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
22/12/2013 02:47:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01590785
Message ID:
01590892
Views:
65
>I have an application written in VFP-9. The said applications has MENU, Forms, PRG etc.
>Oneof the PRG requires Scan-Endscan loop and in between that conversion of Data.
>
>It takes a lot time even on fully loaded I-7 PC. Some expert suggested me to use Multi thread.
>
>Is is possible to convert my application existing application to MT application so that the performance could enhance.
>
>Anybody having Idea , kindly guide.
>
>Regards

I have seen many examples of programmers wasting CPU cycles. For example

SCAN ALL
IF this and that
replace field with something
endif

if not this and not that
replace field with somethingelse
endif
ENDSCAN

It is much faster to optimize that

REPLACE field with something for this and that
REPLACE field with somethingelse for not this and not that.

In other words, are you scanning all records and calling the conversion of data or are you targeting the conversion? If I remember correctly, you are trying to convert PDF files? You can improve things by declaring the dlls at the start of the entire process rather than at each file....

Is the one PRG the slowest part of your system? If so, post that prg and let's see what can be done.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform