Skip to content

Update JSON.ahk#1

Open
robertlzj wants to merge 3 commits into
cocobelgica:masterfrom
robertlzj:patch-1
Open

Update JSON.ahk#1
robertlzj wants to merge 3 commits into
cocobelgica:masterfrom
robertlzj:patch-1

Conversation

@robertlzj

Copy link
Copy Markdown

Use Lookup-table is a little more effective.
Test:

t:=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"]
b:=A_TickCount
Loop 1000000{
    y:=""
    Loop 0x10
        ;~ y.= Chr((x:=A_Index-1) + (x<10 ? 48 : 55))   ;23500 ms
        y.=t[A_Index]   ;13063 ms
}
MsgBox % A_TickCount - b
ExitApp

robertlzj added 3 commits July 8, 2014 19:12
Use Lookup-table seems a (little?) more effective.
I will put my test.
Change misstake ']' to '}'
Remove End line.
Comment thread JSON.ahk

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why there is a newline at end of file in my file?
I just eidt the code in brower, and didn't change the end line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant