sijie commented on a change in pull request #657: Use hash set with native ints
for write set tracking
URL: https://github.com/apache/bookkeeper/pull/657#discussion_r146699495
##########
File path:
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/PendingAddOp.java
##########
@@ -48,15 +50,15 @@
*
*
*/
-class PendingAddOp implements WriteCallback, TimerTask {
+class PendingAddOp implements WriteCallback, TimerTask, IntProcedure {
private final static Logger LOG =
LoggerFactory.getLogger(PendingAddOp.class);
ByteBuf toSend;
AddCallback cb;
Object ctx;
long entryId;
int entryLength;
- Set<Integer> writeSet;
+ IntHashSet writeSet;
Review comment:
Technically I think we don't need Set<Integer> here. I bet an `int[]` would
work here as well.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services