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

Generate Hot Rod parser automatically

    XMLWordPrintable

    Details

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                rvansa Radim Vansa
                Reporter:
                rvansa Radim Vansa
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: