Skip to content
Snippets Groups Projects
  1. Apr 27, 2019
  2. Apr 24, 2019
  3. Apr 21, 2019
  4. Apr 19, 2019
  5. Apr 15, 2019
  6. Jan 13, 2019
  7. Dec 02, 2018
  8. Dec 01, 2018
  9. Nov 28, 2018
  10. Nov 26, 2018
  11. Nov 25, 2018
  12. Nov 10, 2018
  13. Oct 09, 2018
  14. Oct 07, 2018
    • Benedikt Rascher-Friesenhausen's avatar
      Replace `i32` with `c_int` in `memcmp` · 8e2b7c11
      Benedikt Rascher-Friesenhausen authored
      As per the comments from jD91mZM2 on the merge request.
      Unverified
      8e2b7c11
    • Benedikt Rascher-Friesenhausen's avatar
      Optimise `memcmp` for speed · e10a3463
      Benedikt Rascher-Friesenhausen authored
      I saw that in other parts of the `string` module iterations over `usize` were
      used to increase iteration speed.  In this patch I apply the same logic to
      `memcmp`.  With this change I measured a 7x speedup for `memcmp` on a ~1MB
      buffer (comparing two buffers with the same content) on my machine (i7-7500U),
      but I did not do any real world benchmarking for the change.  The increase in
      speed comes with the tradeoff of both increased complexity and larger generated
      assembly code for the function.
      
      I tested the correctness of the implementation by generating two randomly filled
      buffers and comparing the `memcmp` result of the old implementation against this
      new one.
      
      I ran the tests and currently currently three of them fail:
        - netdb (fails to run)
        - stdio/rename (fails to verify)
        - unistd/pipe (fails to verify)
      
      They do so though regardless of this change, so I don't think they are related.
      Unverified
      e10a3463
  15. Oct 06, 2018
  16. Oct 05, 2018
  17. Sep 25, 2018
  18. Sep 22, 2018
  19. Aug 27, 2018
  20. Aug 26, 2018
Loading