diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2025-07-12 19:31:31 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-07-12 10:32:48 +0000 |
| commit | cf7b871a94f2d44eb35676a3dbf9278a73a612c1 (patch) | |
| tree | 0f2197c630e56da95c4187706c4728dd1e71e587 /include/ruby/internal/encoding/transcode.h | |
| parent | 22b81b5bf56d7c5053008697d9e6b2a9c4eb79f4 (diff) | |
[ruby/uri] Improve performance of `URI::MailTo::EMAIL_REGEXP`
Fix the performance regression at #172 for valid emails.
``` yml
prelude: |
require 'uri/mailto'
n = 1000
re = URI::MailTo::EMAIL_REGEXP
benchmark:
n.t..t.: re.match?("n.t..t.@docomo.ne.jp")
example: re.match?("example@example.info")
```
| |released| 788274b| c5974f0| this|
|:--------|-------:|-------:|-------:|-------:|
|n.t..t. | 3.795M| 4.864M| 4.993M| 8.739M|
| | -| 1.28x| 1.32x| 2.30x|
|example | 3.911M| 3.740M| 2.838M| 3.880M|
| | 1.38x| 1.32x| -| 1.37x|
https://github.com/ruby/uri/commit/7363a134ac
Diffstat (limited to 'include/ruby/internal/encoding/transcode.h')
0 files changed, 0 insertions, 0 deletions
