[infinispan-issues] [JBoss JIRA] (ISPN-8981) Generate Hot Rod parser automatically

Radim Vansa (JIRA) issues at jboss.org
Fri Mar 23 06:02:00 EDT 2018


Radim Vansa created ISPN-8981:
---------------------------------

             Summary: Generate Hot Rod parser automatically
                 Key: ISPN-8981
                 URL: https://issues.jboss.org/browse/ISPN-8981
             Project: Infinispan
          Issue Type: Enhancement
          Components: Server
    Affects Versions: 9.2.0.Final
            Reporter: Radim Vansa
            Assignee: Radim Vansa
             Fix For: 9.3.0.Final


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.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the infinispan-issues mailing list