summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2017-06-09 13:35:48 +0100
committerNarayan Kamath <narayan@google.com>2017-06-12 15:30:55 +0100
commit6229d990828aae67089c642fb47ac5b6daaacd48 (patch)
tree1c241b61521b648e28ccc7314ca2cfa07092e9ef /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent89678d6661f731ed8621d8c271216e3d1ddb4ddd (diff)
LocalLog: Use LocalDateTime.now() instead of a Calendar.
Calendars are cloned once per format argument they're used for and cloning a calendar is quite expensive. The line modified by this change used to create dozens of objects, most of them pointlessly cloned. Instead, we LocalDateTime, which is immutable and will be used directly. Moreover, we can rely on its toString method which is specified to format dates the same way we were doing in this class. Test: manual Change-Id: Ia2f6f5eb4f79252663c22b5a81d747c928771ee9
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions