Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update JSON.ahk #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Update JSON.ahk #1

wants to merge 3 commits into from

Conversation

robertlzj
Copy link

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.
}
Copy link
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