> On April 25, 2014, 12:24 a.m., Neha Narkhede wrote: > > core/src/main/scala/kafka/log/Log.scala, line 275 > > <https://reviews.apache.org/r/20616/diff/5/?file=568178#file568178line275> > > > > Can we compute messages.sizeInBytes just once instead of twice?
messages.sizeInBytes just calls buffer.limit, which does not do any computation. - Guozhang ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/20616/#review41421 ----------------------------------------------------------- On April 24, 2014, 11:26 p.m., Guozhang Wang wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/20616/ > ----------------------------------------------------------- > > (Updated April 24, 2014, 11:26 p.m.) > > > Review request for kafka. > > > Bugs: KAFKA-1409 > https://issues.apache.org/jira/browse/KAFKA-1409 > > > Repository: kafka > > > Description > ------- > > Update comments > > > Incorporate Jun's comments round three > > > Fix KAFKA-1409: Address Jun's comments round two > > > Diffs > ----- > > core/src/main/scala/kafka/cluster/Partition.scala > c08eab0bc35aa2b0caa0dfc1987b4face4315d3b > core/src/main/scala/kafka/log/Log.scala > 46df8d99d977a3b010a9b9f4698187fa9bfb2498 > core/src/main/scala/kafka/message/MessageSet.scala > a1b5c63b4d9deaa2556427d995c41841838cf581 > core/src/main/scala/kafka/server/KafkaApis.scala > bb0359d933356b8fcc2c8df22ce6ea9cb838d6a2 > core/src/main/scala/kafka/server/KafkaRequestHandler.scala > f11f6e2c82b016f4dd3e92466ae1d2ede19feb30 > > Diff: https://reviews.apache.org/r/20616/diff/ > > > Testing > ------- > > > Thanks, > > Guozhang Wang > >