[java] simplify Spacing, reduce allocations #89
Reference in New Issue
Block a user
No description provided.
Delete Branch "better_spacing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
get()
, since it's not that expensive and allows us to not allocate a result arraycc @lucasr @andreicoman11
Looks good to me. What was this
mDirty
about? Do we have tests forSpacing
? Maybe add some?@lucasr
mDirty
was used inensureResult()
to determine whether recalculating the result array is necessary. No explicitSpacing
tests, but the coverage is pretty good from the many many layout tests that implicitly useSpacing
for padding and margin. The layout tests already caught a couple of issues while writing this patch and the previous one (#87).👍