Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-5289

Faster Regex for numeric mongoization

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

      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@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            shields@tablecheck.com Johnny Shields
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: