Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-949

Fixed IoBuffer.Pointer.setPosition to work in O(1) instead of O(n) in the common case

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-DEAD
    • 3.0.0-DEAD
    • None
    • None

    Description

      IoBuffer.Pointer.setPosition used to always iterate through the singly linked list starting from the very beginning. There's a fix and a test to reproduce the issue at https://github.com/apache/mina/pull/3

      There are also some other small refactorings and javadoc fixes (that IntelliJ IDEA's static analysis found - you should try running it also for the rest of the project).

      P.S: org.apache.mina.codec.IoBuffer#mark is broken. I'll file another issue for that.

      Attachments

        Activity

          People

            Unassigned Unassigned
            orfjackal Esko Luontola
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: