Performance difference between obj.function(...) and function(obj, ...) ?

This page summarizes the projects mentioned and recommended in the original post on /r/rust

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • cargo-show-asm

    cargo subcommand showing the assembly, LLVM-IR and MIR generated for Rust code

  • While posting the code of an example would be the most helpful to work this out, if you can't or won't do that I'd suggest you check the difference in code generation in the two cases. You can use cargo-show-asm, godbolt, or just cargo to output assembly or LLVM IR for a relevant part of your hot loop. That should give you some clues.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • compiler-explorer

    Run compilers interactively from your web browser and interact with the assembly

  • That sounds weird, the calls should produce identical machine code if all other factors are equal. You can compare the generated assembly code at Compiler Explorer. And yes, be sure to build with optimizations turned on.

  • cargo-asm

    cargo subcommand showing the assembly or llvm-ir generated for Rust code

  • cargo asm might be useful here (if you can't use godbolt).

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Ask HN: Whats State of the art for Code Sandboxing? (2024)

    1 project | news.ycombinator.com | 6 Jun 2024
  • New telescope images of Jupiter's moon Io rival those from spacecraft

    1 project | news.ycombinator.com | 4 Jun 2024
  • Ask HN: Going low-level – what to learn next?

    5 projects | news.ycombinator.com | 4 Jun 2024
  • Compiler Explorer

    1 project | news.ycombinator.com | 30 May 2024
  • C++: freeing resources in destructors using helper functions

    1 project | dev.to | 28 May 2024