asdf2014 commented on a change in pull request #5957: Various changes URL: https://github.com/apache/incubator-druid/pull/5957#discussion_r200844064
########## File path: processing/src/test/java/io/druid/collections/bitmap/BitmapBenchmark.java ########## @@ -73,7 +73,7 @@ protected static ImmutableConciseSet makeOffheapConcise(ImmutableConciseSet conc conciseCount++; final ByteBuffer buf = ByteBuffer.allocateDirect(bytes.length).put(bytes); buf.rewind(); - return new ImmutableConciseSet(buf); + return new ImmutableConciseSet(buf.asIntBuffer()); Review comment: Is `asIntBuffer` necessary? If the `ImmutableConciseSet(ByteBuffer byteBuffer)` constructor is called, it will also call the `asIntBuffer` method internally.. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@druid.apache.org For additional commands, e-mail: dev-h...@druid.apache.org