View Single Post
  #2  
Old 03-09-2024, 06:45
chants chants is offline
VIP
 
Join Date: Jul 2016
Posts: 851
Rept. Given: 48
Rept. Rcvd 53 Times in 32 Posts
Thanks Given: 748
Thanks Rcvd at 1,168 Times in 539 Posts
chants Reputation: 53
XORarrayValues being immutable is certainly hurting perf. You should consider making it mutable where it stores the result in one of the inouy buffers or reuse an output buffer.

Memory allocation is expensive and you overdo it. Also the ToArray calls should be avoided if there is any other way to reference the bytes needed as a view or what have you.
Reply With Quote
The Following 2 Users Say Thank You to chants For This Useful Post:
eychei (03-11-2024), Kurapica (03-10-2024)