Page MenuHomePhabricator

Don't include debugging symbols in XHPAST by default
ClosedPublic

Authored by joshuaspence on Jul 8 2015, 7:31 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 26, 3:10 AM
Unknown Object (File)
Fri, Apr 26, 3:09 AM
Unknown Object (File)
Fri, Apr 26, 3:06 AM
Unknown Object (File)
Thu, Apr 25, 2:34 AM
Unknown Object (File)
Mon, Apr 22, 1:13 AM
Unknown Object (File)
Wed, Apr 17, 2:58 PM
Unknown Object (File)
Wed, Apr 17, 9:19 AM
Unknown Object (File)
Mon, Apr 8, 3:38 PM
Subscribers

Details

Summary

I'm not C/C++ expert, but it seems odd to me that we include debugging symbols on a normal xhpast build... doesn't this have some performance overhead?

Test Plan

N/A

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Don't include debugging symbols in XHPAST by default.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.

Running a simple script to investigate the impact of this change:

#!/bin/bash

rm -f src/.phutil_module_cache
./scripts/build_xhpast.php
time ./scripts/phutil_rebuild_map.php src
Before
real	0m26.442s
user	1m1.528s
sys	0m10.568s
After
real	0m21.172s
user	0m59.420s
sys	0m9.676s
epriestley edited edge metadata.
This revision is now accepted and ready to land.Jul 8 2015, 7:38 AM
This revision was automatically updated to reflect the committed changes.