Skip to content
This repository has been archived by the owner on Dec 21, 2019. It is now read-only.

Fast generics #11

Closed
wants to merge 3 commits into from
Closed

Fast generics #11

wants to merge 3 commits into from

Commits on Mar 2, 2013

  1. Implement shell.implementGenerics, which optimizes for the common gen…

    …eric case.
    
    This means that after array.implementGenerics({foo: fn}), array.foo === fn.
    arian committed Mar 2, 2013
    Copy the full SHA
    30f0209 View commit details
    Browse the repository at this point in the history
  2. Shells now use the implementGenerics method

    This optimizes for the common generic case. No method wrapping as generics
    arian committed Mar 2, 2013
    Copy the full SHA
    f7567fa View commit details
    Browse the repository at this point in the history
  3. Prevent slice / concat, rather use .push for arguments in shell methods.

    Also don't use prime.define, it can simply use this[key] = method directly.
    arian committed Mar 2, 2013
    Copy the full SHA
    12f7f84 View commit details
    Browse the repository at this point in the history