Giter VIP home page Giter VIP logo

Comments (5)

Alexey-T avatar Alexey-T commented on August 16, 2024

@andgineer диапазоны сделал, пишу их как два кода. это даст супер фаст проверку для больших диапазонов типа a-z.

from tregexpr.

Alexey-T avatar Alexey-T commented on August 16, 2024

сделал остальное - см выше!

from tregexpr.

Alexey-T avatar Alexey-T commented on August 16, 2024

жду принятия пача. потом буду убирать все что делается от define UseCharSet ли как оно там называется--- т к при определении этого define с новым опкодом все портится, примите пач и дам пач cleanup. @andgineer

from tregexpr.

andgineer avatar andgineer commented on August 16, 2024

Поддержка диапазонов - хорошая идея, это заметно ускорит работу с большими диапазонами надо только настроить минимальную длину - мне кажется если у нас там всего несколько подряд идущих символов то мы больше потеряем на сравнении границ диапазона чем при простом последовательном сравнении с самими символами.

Тут как раз очень не хватает тестов производительности с помощью которых можно было бы легко проверить гипотезу о производительности.
Может сделаешь что-то простое?
Видимо надо в цикле гонять уже имеющиеся тесты - для чистоты эксперимента можно в них отключать (например с помощью $IFDEF) проверку результата чтобы не замыливать результат работой обвязки теста.

Что касается произвольного набора символов то наверно не надо к каждому приписывать тип - это и некрасиво и неэффективно. Нужен тип "далее N символов" такой же как для диапазона символов.

from tregexpr.

Alexey-T avatar Alexey-T commented on August 16, 2024

Сделал эту оптимизацию- OpKind_Char пишется компактно ( char(6)+length , затем все символы строки)

from tregexpr.

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.