On-Calc handwriting
Moderator: MaxCoderz Staff
- KermMartian
- Calc Wizard
- Posts: 549
- Joined: Tue 05 Jul, 2005 11:28 pm
- Contact:
I didn't bother doing those optimizations because they only optimize for size, but slow it down. I had an extensive discussion about this very topic on my forum (0-->N vs. DelVar) and we determined via batch tests that 0--> is faster. This makes sense, since if you DelVar, you have to wait for the variable to be created next time you try to do something with it.
-
- Calc Wizard
- Posts: 526
- Joined: Tue 08 Mar, 2005 1:37 am
- Location: who wants to know?
- Contact:
Is there a slow-down factor in these optimizations?
Code: Select all
ClrDraw
{0,0->L1
{31,47->L2
{61,94->L3
Repeat K=105
getKey→K
If K>45 and K<96
Then
int(.1K
{Ans-7,K-3-10Ans -> L1
End
max(0,min(L1+L2,L3->L2
L1not(L2=L3 or not(L2 -> L1
Pxl-On(L2(1),L2(2
End
Last edited by DarkerLine on Sun 25 Dec, 2005 3:40 pm, edited 1 time in total.
- KermMartian
- Calc Wizard
- Posts: 549
- Joined: Tue 05 Jul, 2005 11:28 pm
- Contact:
Indeed, lists are always slower than vars.DarkerLine wrote:Is there a slow-down factor in these optimizations?Code: Select all
ClrDraw {0,0->L1 {31,47->L2 {61,94->L3 Repeat K=105 getKey→K If K>45 and K<96 Then int(.1K {Ans-7,K-3-10Ans -> L1 End max(0,min(L1+L2,L3->L2 L1not(L2=L3 or not(L2 -> L1 Pxl-On(L2(1),L2(2 End
And we did time that, kalan.
-
- Calc Wizard
- Posts: 526
- Joined: Tue 08 Mar, 2005 1:37 am
- Location: who wants to know?
- Contact:
- KermMartian
- Calc Wizard
- Posts: 549
- Joined: Tue 05 Jul, 2005 11:28 pm
- Contact:
Okie, haven't loaded it onto my calc yet, but heres the compiled version (asm):
www.mikeknoop.com/upload/test.8XP
-Mike
www.mikeknoop.com/upload/test.8XP
-Mike
- KermMartian
- Calc Wizard
- Posts: 549
- Joined: Tue 05 Jul, 2005 11:28 pm
- Contact: