[ https://issues.apache.org/jira/browse/TS-2978?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14592738#comment-14592738 ]
ASF GitHub Bot commented on TS-2978: ------------------------------------ GitHub user danobi opened a pull request: https://github.com/apache/trafficserver/pull/231 TS-2978 Reorder member variables in HttpSM State Reduce padding by grouping non four byte aligned variables together. Packing was done by hand, and pretty much only touched bools and chars. There was no attempt to pack any structs/objects. Testing with sizeof()s showed a reduction in the size of HttpTransact::State from 4088B to 4064B. You can merge this pull request into a Git repository by running: $ git pull https://github.com/danobi/trafficserver TS-2978 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/trafficserver/pull/231.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #231 ---- commit 3b03c58843b53ba11aa2317e2ff11febe01d57bc Author: Daniel Xu <danie...@yahoo-inc.com> Date: 2015-06-18T07:51:45Z TS-2978 Reorder member variables in HttpSM State Reduce padding by grouping non four byte aligned variables together. ---- > Reorder member variables in HttpSM State > ---------------------------------------- > > Key: TS-2978 > URL: https://issues.apache.org/jira/browse/TS-2978 > Project: Traffic Server > Issue Type: Improvement > Components: HTTP > Reporter: Leif Hedstrom > Assignee: Daniel Xu > Labels: newbie > Fix For: sometime > > > I think we can reduce its size by reordering for example the booleans such > that we don't have to pad so much ? -- This message was sent by Atlassian JIRA (v6.3.4#6332)