1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

Warp: Facebook Open-Sources A Super Fast C/C++ Pre-Processor

Free Software

Published on 31 March 2014 11:51 AM EDT
Written by Michael Larabel in Free Software
20 Comments

Following Facebook's announcement of the Hack language and being one of the organizations backing the new WebScaleSQL, Facebook developers ended out last week by announcing Warp, their latest open-source contribution.

Warp is a C/C++ pre-processor that aims to be as fast as possible. The Warp pre-processor aims to be much faster than GCC's pre-processor. As explained in a new Facebook post:
Conventional wisdom has it that preprocessing time is a negligible part of building a C++ binary. C++ is notoriously difficult to parse, which means that C++ parsers tend to be large and slow compared to their counterparts for other languages. Code generation is also quite the time sink, especially if you're using optimizations. Finally, linking is a large serial step at the end of each build, and using the gold linker only helps so much. Therefore, it would seem that the lowly task of going through the included files and expanding macros would take a comparatively short time and be essentially impossible to improve upon.

Not so! Replacing gcc's preprocessor with warp has led to significant improvements of our end-to-end build times (including linking). Depending on a variety of circumstances, we measured debug build speed improvements ranging from 10% all the way to 40%, all in complex projects with massive codebases and many dependencies. That's not per-file speed, but rather global times measured for scenarios like "build after changing a header file."
The code to the Warp pre-processor has been open-sourced via GitHub. Those wishing to learn more about this C/C++ pre-processor can find details at length via the Facebook post announcement.

About The Author
Michael Larabel is the principal author of Phoronix.com and founded the web-site in 2004 with a focus on enriching the Linux hardware experience and being the largest web-site devoted to Linux hardware reviews, particularly for products relevant to Linux gamers and enthusiasts but also commonly reviewing servers/workstations and embedded Linux devices. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics hardware drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated testing software. He can be followed via and or contacted via .
Latest Linux Hardware Reviews
  1. Even With Re-Clocking, Nouveau Remains Behind NVIDIA's Proprietary Linux Driver
  2. The Power Consumption & Efficiency Of Open-Source GPU Drivers
  3. AMD R600g/RadeonSI Performance On Linux 3.16 With Mesa 10.3-devel
  4. Intel Pentium G3258 On Linux
Latest Linux Articles
  1. Updated Source Engine Benchmarks On The Latest AMD/NVIDIA Linux Drivers
  2. Nouveau vs. Radeon vs. Intel Tests On Linux 3.16, Mesa 10.3-devel
  3. KVM Benchmarks On Ubuntu 14.10
  4. X.Org Server 1.16 Officially Released With Terrific Features
Latest Linux News
  1. Qt 5.4 Going Into Feature Freeze Next Week With Exciting Changes
  2. OpenSUSE Factory Turns Into Rolling Release Distribution
  3. "The World's Most Highly-Assured OS" Kernel Open-Sourced
  4. NVIDIA Is Working Towards VDPAU H.265/HEVC Support
  5. Hawaii Bug-Fixes Start Hitting Mainline RadeonSI Gallium3D
  6. The FFmpeg vs. Libav War Continues In Debian Land
  7. Grand Theft Auto Running On Direct3D Natively On Linux Shows Gallium3D Potential
  8. GCC As A Just-In Time Compiler Is An Interesting Project
  9. Age Of Wonders III Is Still Being Ported To Linux
  10. Git 2.1 To Further Mainline Windows Support Patches
Latest Forum Discussions
  1. Updated and Optimized Ubuntu Free Graphics Drivers
  2. Debian + radeonsi
  3. Open-source drivers on ATI R7 260X
  4. List of Linux friendly Kickstarter projects
  5. Linus Torvalds On GCC 4.9: Pure & Utter Crap
  6. Porting Mesa to the Playstation 2
  7. ASRock AM1H-ITX: One Of The Best AM1 Mini-ITX Motherboards
  8. Table test