Giter Club home page Giter Club logo

Comments (4)

SerafimArts avatar SerafimArts commented on June 14, 2024 1

New tests with phplrt parser v2.0:

Result: 0.0061s (-595%)

from railt.

SerafimArts avatar SerafimArts commented on June 14, 2024

Finish line =)

  1. Accelerated initialization time more than 12 times
  2. Lexical analysis accelerated more than 3 times
  3. Reduced memory consumption by about 2 times
  4. Parser accelerated about one and a half to two times

https://gist.github.com/SerafimArts/12a4d41523c9a5994a2a1b2e1418bc9a

Due to the optimization of the rules of grammar, I can still win in speed, but so far has not worked.

A little bit more I will correct the source code and already will pour the result into the main 1.4.x branch

from railt.

SerafimArts avatar SerafimArts commented on June 14, 2024

P.S. Probably still need to invert the list of "transitional" rules. In this case, their size will be reduced.

from railt.

SerafimArts avatar SerafimArts commented on June 14, 2024

Delivered in a separate project: https://github.com/phplrt/phplrt

from railt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.