capybara icon indicating copy to clipboard operation
capybara copied to clipboard

Prefer symbol keys.

Open ioquatix opened this issue 4 years ago • 3 comments

Using symbol keys reduces memory usage and improves performance slightly.

ioquatix avatar Aug 04 '20 23:08 ioquatix

Thanks this is definitely in when we get to 4.0 - prior to that I need to think about whether I consider this a breaking change

twalpole avatar Aug 05 '20 06:08 twalpole

Great.

ioquatix avatar Aug 05 '20 21:08 ioquatix

@ioquatix Can you share some stats when use symbol over string reduces memory usage

anikettstiwari avatar Aug 05 '21 08:08 anikettstiwari

can you add more two the regester

pankaj3150 avatar Mar 17 '23 07:03 pankaj3150

@twalpole also note that Thread.current[...] is fiber local, not thread local, if that is what you are expecting.

ioquatix avatar Jun 10 '23 14:06 ioquatix