[ 
https://issues.apache.org/jira/browse/ARTEMIS-3850?focusedWorklogId=780864&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-780864
 ]

ASF GitHub Bot logged work on ARTEMIS-3850:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 13/Jun/22 15:26
            Start Date: 13/Jun/22 15:26
    Worklog Time Spent: 10m 
      Work Description: clebertsuconic commented on code in PR #4101:
URL: https://github.com/apache/activemq-artemis/pull/4101#discussion_r895856022


##########
artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/PageSubscriptionImpl.java:
##########
@@ -1172,15 +1044,9 @@ public final class PageCursorInfo implements 
ConsumedPage {
 
       private final long pageId;
 
-      // Confirmed ACKs on this page
-      private Set<PagePosition> acks = Collections.synchronizedSet(new 
LinkedHashSet<PagePosition>());
-
-      private WeakReference<PageCache> cache;
+      private IntObjectHashMap<PagePosition> acks = new IntObjectHashMap<>();
 
-      private Set<PagePosition> removedReferences = new ConcurrentHashSet<>();
-
-      // The page was live at the time of the creation
-      private final boolean wasLive;
+      private IntObjectHashMap removedReferences = new IntObjectHashMap<>();

Review Comment:
   This one will only take Objects. it's adding a DUMMY object whenever a 
position is removed.





Issue Time Tracking
-------------------

    Worklog Id:     (was: 780864)
    Time Spent: 6h 50m  (was: 6h 40m)

> Add Option to read messages into paging based on sizing and eliminate caching
> -----------------------------------------------------------------------------
>
>                 Key: ARTEMIS-3850
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3850
>             Project: ActiveMQ Artemis
>          Issue Type: New Feature
>    Affects Versions: 2.22.0
>            Reporter: Clebert Suconic
>            Assignee: Clebert Suconic
>            Priority: Major
>             Fix For: 2.24.0
>
>          Time Spent: 6h 50m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to