I have two very large strings. How can I compare them to tell if they’re identical, or if one of them is different than the other? (That way I can leave the identical strings alone and process the ones that have changed).
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could compare hash values, or create a wrapper class containing the string in question and a “changed” flag that is set to
trueeach time the string is altered.