lantiga / ki

lisp + mori, sweet.js

Home Page:ki-lang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bind

lantiga opened this issue · comments

Explore alternatives to calling bind(this) in IIFN, e.g. in letv. Native bind has potential performance issues compared to using closures.

See StackOverflow discussion.

  • benchmark iifn+bind / iifn+no bind / noiifn using jsperf

Replaced bind with call. All tests pass, the test suite runs twice as fast.