PathCompactPath

Creative ideas/suggestions for HMG

Moderator: Rathinagiri

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

PathCompactPath

Post by Pablo César »

Yes, you're right. Thank you.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
KDJ
Posts: 243
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland

Re: PathCompactPath

Post by KDJ »

Done. Two versions: one in C, second in HMG.
Please compare them.
 
Attachments
PathCompact.png
PathCompact.png (18.33 KiB) Viewed 3741 times
PathCompact.zip
(4.18 KiB) Downloaded 221 times
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

PathCompactPath

Post 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.
Last edited by Pablo César on Mon Jan 16, 2017 11:05 pm, edited 1 time in total.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
KDJ
Posts: 243
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland

Re: PathCompactPath

Post 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.
 
Attachments
SpeedTest.png
SpeedTest.png (10.19 KiB) Viewed 3687 times
SpeedTest.zip
(1.6 KiB) Downloaded 202 times
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

PathCompactPath

Post by Pablo César »

Screen51.png
Screen51.png (5.88 KiB) Viewed 3680 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 !
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: PathCompactPath

Post by Rathinagiri »

Very nice KDJ.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply