Optimize rust url code. Now only 2-3 times slower than ocaml