char[] to hex string exercise

前端 未结 16 841
感情败类
感情败类 2021-01-12 19:14

Below is my current char* to hex string function. I wrote it as an exercise in bit manipulation. It takes ~7ms on a AMD Athlon MP 2800+ to hexify a 10 million byte array. Is

16条回答
  •  無奈伤痛
    2021-01-12 20:09

    Make sure your compiler optimization is turned on to the highest working level.

    You know, flags like '-O1' to '-03' in gcc.

提交回复
热议问题