String compare in words?

qznc via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun May 29 10:13:49 PDT 2016


Given two string (or char[] or ubyte[]) objects, I want to 
compare them. The naive loop accesses the arrays byte-wise. How 
could I turn this into a word-wise compare for better performance?

Is a cast into size_t[] ok? Some Phobos helper functions?


More information about the Digitalmars-d-learn mailing list