Page 2 of 2

PathCompactPath

Posted: Sun Jan 15, 2017 8:14 pm
by Pablo César
Yes, you're right. Thank you.

Re: PathCompactPath

Posted: Sun Jan 15, 2017 8:58 pm
by KDJ
Done. Two versions: one in C, second in HMG.
Please compare them.
 

PathCompactPath

Posted: Sun Jan 15, 2017 9:42 pm
by Pablo César
Perfect !!

Quite same speed (little time difference) when executing both.
 
PathCompact_C seems faster, but for really.
 
Just FYI, I have seen your hbp files Krzysztof and the proper way should be:
 
PathCompact_C.prg
 
or
 
PathCompact_HMG.prg
 
And in hbc files like this:
 
libs=shlwapi
 
When we want to compile by IDE and Build.bat in HMG.
 
I is really good.
 
I will not need to make automatic lenght. Because the example item "Compact path to control width" serves the same purpose.
 
Thank you very much Krzysztof. You're so kind and also competent.

Re: PathCompactPath

Posted: Mon Jan 16, 2017 8:37 pm
by KDJ
Pablo César wrote: Sun Jan 15, 2017 9:42 pm Quite same speed (little time differance) when executing both.
Try provided below speed test.
It compares the functions that perform the same operations.
 

PathCompactPath

Posted: Mon Jan 16, 2017 9:27 pm
by Pablo César
Screen51.png
Screen51.png (5.88 KiB) Viewed 4075 times
 
:o Ohhh my Jesus Krzysztof ! :lol:
 
So big difference ! :P
 
Pablo César wrote: Sun Jan 15, 2017 9:42 pm Quite same speed (little time differance) when executing both.
I know it was faster... :mrgreen:
 
But not how it much...
 
Thank you man !

Re: PathCompactPath

Posted: Tue Jan 17, 2017 3:34 am
by Rathinagiri
Very nice KDJ.