Skip to content

Instantly share code, notes, and snippets.

@dpeek
Last active December 23, 2015 17:09
Show Gist options
  • Select an option

  • Save dpeek/6666697 to your computer and use it in GitHub Desktop.

Select an option

Save dpeek/6666697 to your computer and use it in GitHub Desktop.
Fluent compilation times
class Test
{
static function main()
{
new Test().a().a().a().a().a().a().a().a().a().a().a().a().a().a().a().a().a().a().a().a().a()
.a() // 0.460s
.a() // 0.910s
.a() // 1.860s
.a() // 3.630s
.a() // 7.350s
;
}
public function new() {}
public function a() return this;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment