From: bob hope Date: 2012-08-01T20:55:07+09:00 Subject: Re: working with large binary strings? Hi, so in the spirit of not cluttering the forum I will ask my somewhat unrelated but still related question here. So I have finished implementing this, but have run into one issue, when I XOR strings together like this: def xor_strings(string_array) processed_strings = [] string_array.each do |string| processed_strings << NArray.to_na(string, "byte") end processed_strings.inject(:^).to_s end the result is not always the same size as the set of strings. I believe some optimization is being done for me and I need to avoid it, however googling for Narray and XOR has not led me to any success. I swear this is my last question regarding this, as after I have this fixed I am all the way done :D -- Posted via http://www.ruby-forum.com/.