View Single Post
Senior Member
zonedabone's Avatar
Status: Offline
Posts: 578
Join Date: Nov 2008
Location: In the interwebs
Default 02-20-2011, 07:23 PM

Alice does not compile code before runtime, so it actually does have go process the comment to know to skip over it. In a language like C, the comments are completely removed before the code is compiled into assembly. In python, bytecode is generated for each command and comments are ignored, and then the code is run, so the only performance drawback is when the file is modified. Remember that alice isn't exactly a programming language that you'd expect. It's all executed in an unorthodox way. Also, it's interesting to note that disabled tiles are not time consuming. Please try running this world for an example of what I mean. I guarantee that I didn't make the comment loop longer. It's because of the comments!
Attached Files
File Type: a2w speed test.a2w (182.8 KB, 6 views)

'Apple Macintosh' - An anagram of 'Complaints Heap'

M.A.C.I.N.T.O.S.H. - Machine Always Crashes, If Not, The Operating System Hangs.

You're *such* a mac person.
Reply With Quote