xp-framework/xp-framework — pull request #265 by thekid (2013-03-28 08:42:46+00:00)
Title: String::substring() performance

This pull request improves the `String::substring()` method's performance:

### Script used for profiling
```sh
$ time xp -w '$fixture= new String($argv[1]); for ($i= 0; $i < 100000; $i++) { $fixture->substring(1, 5); } return $fixture;' 'Hello World, this is awesome'
```

### Before
0m1.296s

### After
0m0.966s