Post B57zvEFKALVtPC0dto by hipsterelectron@circumstances.run
(DIR) More posts by hipsterelectron@circumstances.run
(DIR) Post #B57zuuaDGyL4QBd2gK by cas@social.treehouse.systems
1 likes, 0 repeats
Working on a lil pet project in rust rn and discovered that using Result in the hot path is significantly affecting performance, how do people deal with this?
(DIR) Post #B57zuytVFC95nAgVIu by cas@social.treehouse.systems
0 likes, 0 repeats
like the overhead is tiny but it adds up substantially
(DIR) Post #B57zvDojlCFK4jZPSS by hipsterelectron@circumstances.run
1 likes, 0 repeats
@cas async has a related but slightly different problem
(DIR) Post #B57zvEFKALVtPC0dto by hipsterelectron@circumstances.run
1 likes, 0 repeats
@cas it's very unfortunate to have to produce separate versions of a function for perf like this but i would recommend something like passing in an &mut flag