Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-57208

replace nex with ad hoc lexer

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • Morpheus
    • 7.2.0
    • query
    • None
    • 0

    Description

      Nex generates tokens by spawning an scanning thread which uses two channels and a whole host of anonymous functions to implement as set of states for a rather complicated finite state machine.
      Token scanning is currently the most expensive part of parsing, is GC intensive, and has been known in the past to leak goroutines.

      implement a much simpler ad hoc lexer which identifies the next token at each call and is heap neutral.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            dhanya.gowrish Dhanya Gowrish
            marco.greco Marco Greco (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty