Mike Yearwood
Toronto, Ontario, Canada
General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only