This is a performance optimisation that avoids us going through from AbstractList.add(E) to LazyStringArrayList.add(int index, String) and then having to call the index-based add in ArrayList, which has more bookkeeping around moving elements across if necessary. We can avoid that bookkeeping by adding this overload. Also, group together overloads to squash a style warning. PiperOrigin-RevId: 650089286pull/17337/head
parent
229c958a5c
commit
761d49a270
1 changed files with 23 additions and 14 deletions
Loading…
Reference in new issue