How to write slow Rust code

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

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
  • prechelt-phone-number-encoding

    Comparison between Java and Common Lisp solutions to a phone-encoding problem described by Prechelt

  • source: https://github.com/renatoathaydes/prechelt-phone-number-enco...

  • source: https://github.com/renatoathaydes/prechelt-phone-number-enco...

  • 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
  • prechelt-phone-number-encoding

    Comparison between Java and Common Lisp solutions to a phone-encoding problem described by Prechelt (by nybble41)

  • In this case the linked list is just tracking "breadcrumbs" which mirror the path back up the call chain, so you don't even need reference counting; a simple borrowed reference will do. I put together a version in Rust based on stack-allocated linked lists[0], and the results were promising: on 10 million inputs the Rust version completes in about 40 seconds on my machine, while the Java port (Main2.java in the code; "Java1" from the article IIUC) takes 82 seconds. This Rust version doesn't allocate anything from the heap, apart from loading the dictionary at startup; all the bookkeeping, including the cons cells, is kept on the stack.

    [0] https://github.com/nybble41/prechelt-phone-number-encoding

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

  • I found one of my first programs (Java,2011) on the Wayback Machine and it runs

    5 projects | news.ycombinator.com | 26 Apr 2024
  • Navigating Technical Debt

    1 project | dev.to | 3 May 2024
  • Show HN: BandMatch – "Tinder" but for finding musicians to create bands/collab

    1 project | news.ycombinator.com | 3 May 2024
  • "Where is James?" – A reminder to choose your open-source libraries wisely

    1 project | news.ycombinator.com | 3 May 2024
  • "Where Is James?"

    1 project | news.ycombinator.com | 3 May 2024