Re: [PR] Group memory arenas by segment to reduce costly `Arena.close()` [lucene]

2024-07-15 Thread via GitHub
magibney commented on PR #13555: URL: https://github.com/apache/lucene/pull/13555#issuecomment-2228844256 Closing in favor of #13570 -- 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

Re: [PR] Group memory arenas by segment to reduce costly `Arena.close()` [lucene]

2024-07-15 Thread via GitHub
magibney closed pull request #13555: Group memory arenas by segment to reduce costly `Arena.close()` URL: https://github.com/apache/lucene/pull/13555 -- 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

Re: [PR] Group memory arenas by segment to reduce costly `Arena.close()` [lucene]

2024-07-14 Thread via GitHub
ChrisHegarty commented on PR #13555: URL: https://github.com/apache/lucene/pull/13555#issuecomment-2227465099 Hi, I don't have access to commit to this branch, so (sorry) I just created an alternative PR to sketch out an idea around a simplification of ref counting the arena. See #13570

Re: [PR] Group memory arenas by segment to reduce costly `Arena.close()` [lucene]

2024-07-11 Thread via GitHub
magibney commented on PR #13555: URL: https://github.com/apache/lucene/pull/13555#issuecomment-2223189418 Thanks for the suggestions! Most of these are now addressed (with a couple of questions: 1. maybe still need chm.computeIfAbsent() loop, 2. which if any Arena methods to throw UOE).

Re: [PR] Group memory arenas by segment to reduce costly `Arena.close()` [lucene]

2024-07-11 Thread via GitHub
magibney commented on code in PR #13555: URL: https://github.com/apache/lucene/pull/13555#discussion_r1674172898 ## lucene/core/src/java21/org/apache/lucene/store/GroupedArena.java: ## @@ -0,0 +1,212 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more +

Re: [PR] Group memory arenas by segment to reduce costly `Arena.close()` [lucene]

2024-07-11 Thread via GitHub
magibney commented on code in PR #13555: URL: https://github.com/apache/lucene/pull/13555#discussion_r1674096237 ## lucene/core/src/java21/org/apache/lucene/store/GroupedArena.java: ## @@ -0,0 +1,212 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more +

Re: [PR] Group memory arenas by segment to reduce costly `Arena.close()` [lucene]

2024-07-11 Thread via GitHub
uschindler commented on code in PR #13555: URL: https://github.com/apache/lucene/pull/13555#discussion_r1673613242 ## lucene/core/src/java21/org/apache/lucene/store/MemorySegmentIndexInputProvider.java: ## @@ -24,12 +24,15 @@ import java.nio.file.Path; import java.nio.file.Sta

Re: [PR] Group memory arenas by segment to reduce costly `Arena.close()` [lucene]

2024-07-11 Thread via GitHub
uschindler commented on code in PR #13555: URL: https://github.com/apache/lucene/pull/13555#discussion_r1673613242 ## lucene/core/src/java21/org/apache/lucene/store/MemorySegmentIndexInputProvider.java: ## @@ -24,12 +24,15 @@ import java.nio.file.Path; import java.nio.file.Sta

Re: [PR] Group memory arenas by segment to reduce costly `Arena.close()` [lucene]

2024-07-11 Thread via GitHub
ChrisHegarty commented on code in PR #13555: URL: https://github.com/apache/lucene/pull/13555#discussion_r1673550548 ## lucene/core/src/java21/org/apache/lucene/store/MemorySegmentIndexInputProvider.java: ## @@ -24,12 +24,15 @@ import java.nio.file.Path; import java.nio.file.S

Re: [PR] Group memory arenas by segment to reduce costly `Arena.close()` [lucene]

2024-07-11 Thread via GitHub
ChrisHegarty commented on code in PR #13555: URL: https://github.com/apache/lucene/pull/13555#discussion_r1673543647 ## lucene/core/src/java21/org/apache/lucene/store/GroupedArena.java: ## @@ -0,0 +1,212 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or mo

Re: [PR] Group memory arenas by segment to reduce costly `Arena.close()` [lucene]

2024-07-10 Thread via GitHub
uschindler commented on code in PR #13555: URL: https://github.com/apache/lucene/pull/13555#discussion_r1672768505 ## lucene/core/src/java21/org/apache/lucene/store/GroupedArena.java: ## @@ -0,0 +1,212 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more

Re: [PR] Group memory arenas by segment to reduce costly `Arena.close()` [lucene]

2024-07-09 Thread via GitHub
magibney commented on PR #13555: URL: https://github.com/apache/lucene/pull/13555#issuecomment-2218482093 Follows an approach analogous to the ["custom arenas"](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/foreign/Arena.html#custom-arenas) case described in Arena j