You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by "rishabhdaim (via GitHub)" <gi...@apache.org> on 2024/09/17 08:48:31 UTC

[PR] OAK-11073 : added ensureCapacity method to create hash based collecti… [jackrabbit-oak]

rishabhdaim opened a new pull request, #1722:
URL: https://github.com/apache/jackrabbit-oak/pull/1722

   …ons with expected size


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: oak-dev-unsubscribe@jackrabbit.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] OAK-11073 : added ensureCapacity method to create hash based collecti… [jackrabbit-oak]

Posted by "reschke (via GitHub)" <gi...@apache.org>.
reschke commented on code in PR #1722:
URL: https://github.com/apache/jackrabbit-oak/pull/1722#discussion_r1762706427


##########
oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/collections/CollectionUtils.java:
##########
@@ -34,6 +36,8 @@
  */
 public class CollectionUtils {
 
+    private static final int MAX_CAPACITY = 1 << 30;

Review Comment:
   maybe add a comment here so it's clear why it's needed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: oak-dev-unsubscribe@jackrabbit.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] OAK-11073 : added ensureCapacity method to create hash based collecti… [jackrabbit-oak]

Posted by "rishabhdaim (via GitHub)" <gi...@apache.org>.
rishabhdaim merged PR #1722:
URL: https://github.com/apache/jackrabbit-oak/pull/1722


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: oak-dev-unsubscribe@jackrabbit.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org