Jive Software Open Source

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Openfire (ARCHIVED)
  • JM-1454

Internal cache of JID class does not use a LRU based eviction policy.

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: None
  • Fix Version/s: 3.6.1
  • Component/s: Core
  • Labels:
    None
  • Acceptance Test - Add?:
    No

Description

The org.xmpp.packet.JID class uses an internal Cache to prevent duplicate stringprepping. In the documentation that comes with the source, and by looking at the source, it's clear that a LRU (Least-Recently-Used) eviction policy is intended to be used.

There are only two operations being done on the cache: containsKey() and put().

containsKey() does not update the 'access order' of the cache. The only time that the access order gets modified, is when the original entry is put in the cache. In effect, a FIFO (first in first out)) eviction policy has been implemented.

Issue Links

is related to

Improvement - An improvement or enhancement to an existing feature or task. JM-1453 JID class cache should not use one single mutex to synchronize all access on.

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Source
  • Reviews
  • Builds
Hide
Permalink
Guus der Kinderen added a comment - 10/16/08 08:21 AM

Won't fix this issue, as accepting (and enforcing) FIFO behavior will allow for a very simple and fast cache implementation (see JM-1453). The benefits of LRU do not outweigh the performance boost that was introduced by JM-1453.

Show
Guus der Kinderen added a comment - 10/16/08 08:21 AM Won't fix this issue, as accepting (and enforcing) FIFO behavior will allow for a very simple and fast cache implementation (see JM-1453). The benefits of LRU do not outweigh the performance boost that was introduced by JM-1453.

People

  • Assignee:
    Gaston Dombiak
    Reporter:
    Guus der Kinderen
Vote (0)
Watch (0)

Dates

  • Created:
    08/28/08 03:04 PM
    Updated:
    11/14/08 09:31 AM
    Resolved:
    10/16/08 08:21 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for igniterealtime.org. Try JIRA - bug tracking software for your team.