Permalink
Switch branches/tags
Nothing to show
Commits on Feb 12, 2018
  1. Build up result in array instead of strings

    masak authored and mathiasbynens committed Feb 12, 2018
    Incrementally concatenating strings means a lot of intermediate strings get allocated only to be thrown away. The result is O(n**2) in both space and time. See this post about “Shlemiel the painter’s algorithm” for a good description about the quadratic behavior involved: https://www.joelonsoftware.com/2001/12/11/back-to-basics/
    
    Storing each fragment in an array and joining them all together in the end at least avoids allocating ever-longer intermediate strings. I have not run any benchmarks on very long strings,
    though. That might still be interesting to do.
    
    Closes #12.
  2. Update dependencies

    mathiasbynens committed Feb 12, 2018
Commits on Sep 15, 2015
  1. Use `Array#find` in build scripts

    mathiasbynens committed Sep 15, 2015
    This requires a build environment with Node.js v4+.
Commits on Jun 18, 2015
Commits on Feb 24, 2015
Commits on Jan 26, 2015
  1. Release v0.2.0

    mathiasbynens committed Jan 26, 2015
  2. Update dependencies

    mathiasbynens committed Jan 26, 2015
Commits on Apr 23, 2014
  1. Update dependencies

    mathiasbynens committed Apr 23, 2014
Commits on Mar 20, 2014
Commits on Oct 17, 2013
Commits on Jun 28, 2013
  1. Remove GPL license

    mathiasbynens committed Jun 28, 2013
    MIT is GPL-compatible anyway.
Commits on Jun 21, 2013
Commits on Jun 17, 2013
  1. Enable CI tests in Rhino, RingoJS, and Narwhal

    mathiasbynens committed Jun 17, 2013
    Thanks to @oxyc for figuring out the appropriate `before_script` rules for this.
Commits on Jun 13, 2013
Commits on Jun 6, 2013
  1. Add component.json

    mathiasbynens committed Jun 6, 2013
Commits on Jun 5, 2013
  1. .npmignore: Add `src`

    mathiasbynens committed Jun 5, 2013
Commits on Jun 2, 2013
Commits on May 30, 2013
  1. Add bower.json

    mathiasbynens committed May 30, 2013
Commits on May 29, 2013
  1. Minor cleanup

    mathiasbynens committed May 29, 2013
Commits on May 28, 2013
  1. README: Fix typo in example

    Niggler authored and mathiasbynens committed May 28, 2013
    Closes #3.
Commits on May 27, 2013
  1. Tag the v0.1.0 release

    mathiasbynens committed May 27, 2013