Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-8981

Generate Hot Rod parser automatically

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 9.4.0.Alpha1, 9.4.0.CR3
    • 9.2.0.Final
    • Server
    • None

    Description

      This JIRA has two objectives:
      1. reduce number of allocated objects
      2. improve the parsing on server side to avoid chains of lambda mappings

      Manual parsing of Hot Rod protocol, invoking recursive methods that return {{Optional}}s or {{Optional<Optional<...>}}s seems to generate a lot of garbage. A better approach would be a finite state automaton that would read the byte stream and invoke callbacks.

      Such automaton can be generated from a high-level grammar as part of the build process.

      Along with these changes we can remove the Response abstraction and write responses directly as {{ByteBuf}}s.

      Attachments

        Activity

          People

            rvansa1@redhat.com Radim Vansa (Inactive)
            rvansa1@redhat.com Radim Vansa (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: