paint-brush
Making Ruby’s Array.include? faster for symbolsby@pawelniewiadomski
108 reads

Making Ruby’s Array.include? faster for symbols

by Pawel Niewiadomski4mApril 1st, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

It’s all started doing some refactoring — I was playing with <code class="markup--code markup--p-code">Array</code> and <code class="markup--code markup--p-code">Set</code> and something tempted me do to a simple benchmark that revealed strange results. That's a second part in which I describe how I fixed it. It's about building Ruby's code, debugging it with <code class="markup--code markup--p-code">lldb</code> and making it faster!

Company Mentioned

Mention Thumbnail
featured image - Making Ruby’s Array.include? faster for symbols
Pawel Niewiadomski HackerNoon profile picture
Pawel Niewiadomski

Pawel Niewiadomski

@pawelniewiadomski

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite