geek & interesting & personal & programming & undergrad computer science classes 15 Nov 2007 08:23 pm

SNOBOL: Optimizing variables

—Before—

$ time snobol4 -b algol_recognizer.sno < sample0.a60
x[Q[sin(nXpi/2)],Q[3888888888888888888888888888888888888888888888888,8,4,4,3,5,4]]
*
Yes

real 0m9.340s
user 0m9.273s
sys 0m0.004s
—After—

$ time snobol4 -b algol_recognizer.sno < sample0.a60

Checking…
+ x[Q[sin(nXpi/2)],Q[3888888888888888888888888888888888888888888888888,8,4,4,3,5,4]]
*
Yes

real 0m0.023s
user 0m0.012s
sys 0m0.004s
I call that improvement.

Trackback This Post | Subscribe to the comments through RSS Feed

Leave a Reply