Skip to content

Instantly share code, notes, and snippets.

@brson
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brson/b48dd03b06c406be68e6 to your computer and use it in GitHub Desktop.
Save brson/b48dd03b06c406be68e6 to your computer and use it in GitHub Desktop.
Servo inline(always)

TL;DR Converting inline(always) to inline in CodegenRust and jstracable speeds up compile time by 14%. Interestingly, converting just one or the other does not produce large wins.

servo inlining

  • before (--dev): Build completed in 401.66s
  • before (--release): Build completed in 535.19s

removing inline(always) from CodegenRust

  • after (--dev): Build completed in 395.46s
  • after (--release): Build completed in 528.52s

removing inline(always) from jstracable

  • after (--dev): Build completed in 395.77s
  • after (--release): Build completed in 517.01s

both cogegenrust and jstracable

  • after (--dev): Build completed in 351.74s
  • after (--release): Build completed in 464.38s

all components/ converted

  • after (--dev): Build completed in 354.11s
  • after (--release): Build completed in 467.57s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment