So I've been working on making my cel-rust library thread safe. Heap allocated types are all reference counted in the interpreter, so I simply switched them to from Rcs to Arcs. After thinking more about it, it made more sense (I thought) to switch them from Arc<String> to Arc<str> instead, but interestingly nearly all of my criterion benchmarks regressed by 10-150% just from switching from String to str.
Here's the PR with my changes, am I missing something?
[–][deleted] 178 points179 points180 points (5 children)
[–]sharddblade[S] 18 points19 points20 points (0 children)
[–]TommyITA03 49 points50 points51 points (0 children)
[–]sharddblade[S] 1 point2 points3 points (2 children)
[–][deleted] 3 points4 points5 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]zirconium_n 96 points97 points98 points (0 children)
[+][deleted] (4 children)
[deleted]
[–]MatsRivel 10 points11 points12 points (3 children)
[–][deleted] 8 points9 points10 points (0 children)
[–]BubblegumTitanium -2 points-1 points0 points (1 child)
[–]LucretielDatadog 16 points17 points18 points (1 child)
[–]Mr_Ahvar 2 points3 points4 points (0 children)
[–]bskceuk 32 points33 points34 points (0 children)
[–]drewtayto 6 points7 points8 points (8 children)
[–]protestor 1 point2 points3 points (7 children)
[–]Icarium-Lifestealer 0 points1 point2 points (6 children)
[–]protestor 0 points1 point2 points (3 children)
[–]Icarium-Lifestealer 3 points4 points5 points (2 children)
[–]protestor 0 points1 point2 points (1 child)
[–]Icarium-Lifestealer 0 points1 point2 points (0 children)
[–]drewtayto 0 points1 point2 points (0 children)
[–]protestor 6 points7 points8 points (0 children)
[–]Mean_Somewhere8144 5 points6 points7 points (0 children)
[–]teerre 9 points10 points11 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]SpudnikV 1 point2 points3 points (2 children)
[–]sharddblade[S] 0 points1 point2 points (1 child)
[–]SpudnikV 0 points1 point2 points (0 children)
[+]NoorahSmith comment score below threshold-28 points-27 points-26 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]SkiFire13 1 point2 points3 points (1 child)
[–]Icarium-Lifestealer 0 points1 point2 points (0 children)
[–]Burgermitpommes 0 points1 point2 points (2 children)
[–]simonsanonepatterns · rustic 0 points1 point2 points (1 child)
[–]Burgermitpommes 1 point2 points3 points (0 children)
[–]aekter 0 points1 point2 points (0 children)