What is the most efficient way to encode an arbitrary GUID into readable ASCII (33-127)?

后端 未结 8 696
自闭症患者
自闭症患者 2020-11-30 22:08

The standard string representation of GUID takes about 36 characters. Which is very nice, but also really wasteful. I am wondering, how to encode it in the shortest possible

8条回答
  •  余生分开走
    2020-11-30 22:35

    An arbitrary GUID? The "naive" algorithm will produce optimal results. The only way to compress a GUID further is to make use of patterns in the data excluded by your "arbitrary" constraint.

提交回复
热议问题