# Is \`Vector{UInt8}(string)\` the fastest way to convert String to bytes?

**URL:** https://discourse.julialang.org/t/is-vector-uint8-string-the-fastest-way-to-convert-string-to-bytes/7642
**Category:** Performance
**Created:** [December 9, 2017, 3:58am UTC](https://discourse.julialang.org/t/is-vector-uint8-string-the-fastest-way-to-convert-string-to-bytes/7642 "2017-12-09T03:58:15Z")
**Posts on this page:** 1
**Showing post:** 19

<div class="post-metadata">

### Author: ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)
#### Post date: [December 10, 2017, 11:55am UTC](https://discourse.julialang.org/t/is-vector-uint8-string-the-fastest-way-to-convert-string-to-bytes/7642/19 "2017-12-10T11:55:57Z")

</div>

Thanks for all your help and suggestion! I got a faster string sorting algorithm (for 8 byte string only atm) implemented already! It’s as fast as R’s.

See [WIP: faster string sort](https://discourse.julialang.org/t/wip-faster-string-sort/7671)

---

_[View the full topic](https://discourse.julialang.org/t/is-vector-uint8-string-the-fastest-way-to-convert-string-to-bytes/7642)._
