Skip to content

Instantly share code, notes, and snippets.

@Mercerenies
Last active June 11, 2018 21:20
Show Gist options
  • Save Mercerenies/aa0e276f5b31f05a21a7fb03d551bc59 to your computer and use it in GitHub Desktop.
Save Mercerenies/aa0e276f5b31f05a21a7fb03d551bc59 to your computer and use it in GitHub Desktop.
Profiling of the various assignment-operator syntaxes in Latitude
;; manual
10000 times {
a := 1.
a= := { parent a := #'($1). }.
do { a = 2. }.
}.
;; assignable
10000 times {
a := 1.
assignable 'a.
do { a = 2. }.
}.
;; local
10000 times {
local 'a = 1.
do { a = 2. }.
}.
;; variable-decl
10000 times {
a := 1.
do { a = 2. }.
}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment