commit | 9a0a76df1e961ef4621e81814d8bf891a09bef66 | [log] [tgz] |
---|---|---|
author | Jeff Brown <jeffbrown@google.com> | Fri Mar 16 14:45:49 2012 -0700 |
committer | Alex Ray <aray@google.com> | Tue Jul 30 13:56:59 2013 -0700 |
tree | 63436edb3bec6bb1160dd3cdcc8a97cb1a01237c | |
parent | a19d2c7e3bf4aadad064163029bccf3f03c300cb [diff] |
Add traits to common utils data structures. Many of our basic data structures are trivially movable using memcpy() even if they are not trivially constructable, destructable or copyable. It's worth taking advantage of this *ahem* trait. Adding trivial_move_trait to String16 reduces appt running time on frameworks/base/core/res by 40%! Change-Id: I630a1a027e2d0ded96856e4ca042ea82906289fe