5 Commits

Author SHA1 Message Date
Steven Allen
2e9c819c18 make cast use NewMultiaddrBytes
This will perform all the correct checks *except* that it won't bother actually
stringifying the multiaddr. It should be significantly faster.
2018-10-01 16:57:15 -07:00
Steven Allen
2999d4efba small Join optimizations 2018-10-01 16:56:58 -07:00
Steven Allen
61e31ed48b stop copying when calling Bytes
This is a huge performance hit. Really, we just need to tell users not to modify
the result.

Also, get rid of an unnecessary pointer indirection (no api change).
2018-10-01 16:56:57 -07:00
Juan Batiz-Benet
62a88e015e faster encapsulation + join 2014-11-05 02:30:53 -08:00
Juan Batiz-Benet
9d04132166 Split + Join 2014-11-05 02:20:27 -08:00