@jangray.bsky.socialJan Gray @jangray.bsky.social
2026-11-24 14:59 UTC
For example, maybe you need to sort items on comma separated keys. Is “a,b,c,d” <= “e,f,g,h”? So (clever) you call String.Split() on each key, making twice five garbage objects to compare two keys, done O(n lg n) times in the Sort(). “Are you aware your code makes 100KBs of garbage, and GCs?” “Oh.”
A reply in a thread.
2 likes, 0 reposts, 1 replies
3 Next post4 More from @jangray.bsky.socialBackBluesky home