-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit 10fd371
Improve TransactionAwareBufferedWriter
TransactionAwareBufferedWriter offers a number of optimization
potentials. First it creates an unnecessary local, temporary char[]
in write(char[], int, int). Second it does not overwrite any of the
#write(String) methods leading to unnecessary intermediate copies.
* avoid local, temporary char[] in #write(char[], int, int)
* overwrite #write(String) methods to avoid copies
Together these two changes should help to reduce allocation rate.
Issue: #1166 1 parent fe51fde commit 10fd371
File tree
1 file changed
+25
-4
lines changed- spring-batch-infrastructure/src/main/java/org/springframework/batch/support/transaction
1 file changed
+25
-4
lines changedLines changed: 25 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | - | ||
2 | + | ||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
210 | 210 |
| |
211 | 211 |
| |
212 | 212 |
| |
213 | - | ||
214 | - | ||
215 | - | ||
213 | + | ||
216 | 214 |
| |
217 | 215 |
| |
218 | 216 |
| |
| |||
225 | 223 |
| |
226 | 224 |
| |
227 | 225 |
| |
226 | + | ||
227 | + | ||
228 | + | ||
229 | + | ||
230 | + | ||
231 | + | ||
232 | + | ||
233 | + | ||
234 | + | ||
235 | + | ||
236 | + | ||
237 | + | ||
238 | + | ||
239 | + | ||
240 | + | ||
241 | + | ||
242 | + | ||
243 | + | ||
244 | + | ||
245 | + | ||
246 | + | ||
247 | + | ||
248 | + | ||
228 | 249 |
|
0 commit comments