summaryrefslogtreecommitdiffhomepage
path: root/include/mruby.h
diff options
context:
space:
mode:
authorksss <[email protected]>2015-12-31 17:52:22 +0900
committerksss <[email protected]>2015-12-31 17:52:22 +0900
commit6c1b6ef7a5d849ccfcb8cbd163443f983f264857 (patch)
tree6145a01bbf3fbd70dd0e8618235f04eb567e499a /include/mruby.h
parentd3c6fafaf3fe61961a46338f4ced4d99918a8f35 (diff)
downloadmruby-6c1b6ef7a5d849ccfcb8cbd163443f983f264857.tar.gz
mruby-6c1b6ef7a5d849ccfcb8cbd163443f983f264857.zip
Use memchr for performance
```ruby s = "b" str = ("a" * 100 + s) t = Time.now str.index(s) puts Time.now - t ``` before => 0.000788 after => 0.000508 --- ```ruby s = "b" str = ("a" * 100 * 1024 * 1024 + s) t = Time.now str.index(s) puts Time.now - t ``` before => 0.225474 after => 0.008658
Diffstat (limited to 'include/mruby.h')
0 files changed, 0 insertions, 0 deletions