Against my expectations, the code on top is noticeably slower than the code on the bottom, why?

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

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
  • BinarySearchTreeExercises

    Practicing with Binary Search Trees

  • It is probably crude but this is what I have been playing with. The section at bottom is where I am basing this off of. But I am not running both versions at once. I have just been modifying class and running code for about 10 times each version separately. And did so more than once, maybe 3 times? https://github.com/sethvan/BinarySearchTreeExercise/blob/master/raw/insertRunTimes.cpp

  • MGCLib

    A C++ Library of commonly used containers and libraries

  • I did not go with the left leaning version you attached because the paper intimidated me as soon as it mentioned 2-3 trees which I was not familiar with, however I have been slightly glancing at the repository from 2022 (which is where I based my node off of in part). Two observations I have made of that class and another piece of code https://pastebin.com/7GGFiaEc I had looked at for an AVL tree in C is that first I think it is very cool that they have so many functions that return a node value back to it's own variable like node = doSomething(node) so to speak instead of all the void methods that I have been doing (not only on my own but that this professor also showed for my present version of a red black tree here https://pastebin.com/m1aG7w4s ). So that's cool and suspect I need to try and think more in that mannner. BUT.... in neither of those versions do I see any memory being deleted or free'd nywhere. So i am confused, Why is there no destructor in this guy https://github.com/maxgoren/MGCLib/blob/main/mgc_redblack.hpp and why is nothing being deleted anywhere that I can see?

  • 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
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

  • FridgeBot — GPT-4o shopping list automation

    2 projects | dev.to | 20 May 2024
  • Thorium: Cross-platform patched Chromium fork "fastest browser on Earth"

    7 projects | news.ycombinator.com | 20 May 2024
  • How a 64k intro is made (2017)

    1 project | news.ycombinator.com | 20 May 2024
  • Llama3 Implemented from Scratch

    10 projects | news.ycombinator.com | 19 May 2024
  • Timg – A terminal image and video viewer

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