commit | e6d77c593d1a25b45c23bf9292ec7ee09fc14b6e | [log] [tgz] |
---|---|---|
author | Jeff Brown <jeffbrown@google.com> | Fri Mar 16 14:45:49 2012 -0700 |
committer | Jeff Brown <jeffbrown@google.com> | Fri Mar 16 16:21:21 2012 -0700 |
tree | 7246b3be522780008cf90a2ce112bd70c52e344d | |
parent | 599ebfd48d43933e2edcfd4f18a0b1a9a9d7ff38 [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