Faster Regex for numeric mongoization

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Unknown
    • 8.0.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      This is to track PR https://github.com/mongodb/mongoid/pull/5222

      It contains two performance changes to _numeric_ method used in Mongoization:

      • .match? is faster than =~
      • Faster regex which is functionally equivalent to the old one.

            Assignee:
            Oleg Pudeyev (Inactive)
            Reporter:
            Johnny Shields
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: