1. 06 8月, 2013 1 次提交
  2. 05 8月, 2013 34 次提交
  3. 04 8月, 2013 5 次提交
    • B
      auto merge of #8243 : stepancheg/rust/ipv, r=brson · 22f9ce4d
      bors 提交于
      multicast functions now take IpAddr (without port), because they dont't
      need port.
      
      Uv* types renamed:
      * UvIpAddr -> UvSocketAddr
      * UvIpv4 -> UvIpv4SocketAddr
      * UvIpv6 -> UvIpv6SocketAddr
      
      "Socket address" is a common name for (ip-address, port) pair (e.g. in
      sockaddr_in struct).
      
      P. S. Are there any backward compatibility concerns? What is std::rt module, is it a part of public API?
      22f9ce4d
    • B
      auto merge of #8237 : blake2-ppc/rust/faster-utf8, r=brson · f7c4359a
      bors 提交于
      Use unchecked vec indexing since the vector bounds are checked by the
      loop. Iterators are not easy to use in this case since we skip 1-4 bytes
      each lap. This part of the commit speeds up is_utf8 for ASCII input.
      
      Check codepoint ranges by checking the byte ranges manually instead of
      computing a full decoding for multibyte encodings. This is easy to read
      and corresponds to the UTF-8 syntax in the RFC.
      
      No changes to what we accept. A comment notes that surrogate halves are
      accepted.
      
      Before:
      
      	test str::bench::is_utf8_100_ascii ... bench: 165 ns/iter (+/- 3)
      	test str::bench::is_utf8_100_multibyte ... bench: 218 ns/iter (+/- 5)
      
      After:
      	test str::bench::is_utf8_100_ascii ... bench: 130 ns/iter (+/- 1)
      	test str::bench::is_utf8_100_multibyte ... bench: 156 ns/iter (+/- 3)
      
      An improvement upon the previous pull #8133
      f7c4359a
    • B
      auto merge of #8254 : brson/rust/libuv-mac-supp, r=pcwalton · 5cf69d5b
      bors 提交于
      I suspect that this is a race between process exit and the termination of
      worker threads used by libuv (if I sleep before exit it doesn't leak). This
      isn't going to cause any real problems but should probably be fixed at
      some point.
      
      r? @pcwalton
      
      cc #8253
      5cf69d5b
    • B
      auto merge of #8217 : brson/rust/reset_stack_limit, r=pcwalton · 91b71188
      bors 提交于
      In some scenarios upcall_rust_stack_limit fails to record the stack
      limit, leaving it 0, and allowing subsequent Rust code to run into
      the red zone.
      91b71188
    • D
      Implemented TreeMap::{lower_bound_iter,upper_bound_iter} · 73ec9f36
      Dmitry Ermolov 提交于
      (issue #4604)
      73ec9f36