File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -358,11 +358,12 @@ private void fillDump( Dump<Bean> dump ) throws IOException {
358358 for ( int i = 0 ; i < BEAN_SIZE - 15 ; i ++ ) { // 15 is an estimation for the size of the Bean instance without this padding
359359 sb .append ('0' );
360360 }
361+ String padding = sb .toString ();
361362
362363 /* add some elements */
363364 long t = System .currentTimeMillis ();
364365 for ( int i = 0 ; i < _dumpSize ; i ++ ) {
365- dump .add (new Bean (i , i + sb . toString () ));
366+ dump .add (new Bean (i , i + padding ));
366367 }
367368 System .out .println ("Written " + _dumpSize + " instances to dump. Needed " + (System .currentTimeMillis () - t ) / (float )_dumpSize + " ms/instance." );
368369 }
Original file line number Diff line number Diff line change @@ -382,11 +382,12 @@ private void fillDump( Dump<Bean> dump ) throws IOException {
382382 for ( int i = 0 ; i < BEAN_SIZE - 15 ; i ++ ) { // 15 is an estimation for the size of the Bean instance without this padding
383383 sb .append ('0' );
384384 }
385+ String padding = sb .toString ();
385386
386387 /* add some elements */
387388 long t = System .currentTimeMillis ();
388389 for ( int i = 0 ; i < _dumpSize ; i ++ ) {
389- dump .add (new Bean (i , i + sb . toString () ));
390+ dump .add (new Bean (i , i + padding ));
390391 }
391392 System .out .println ("Written " + _dumpSize + " instances to dump. Needed " + (System .currentTimeMillis () - t ) / (float )_dumpSize + " ms/instance." );
392393 }
You can’t perform that action at this time.
0 commit comments