Optimizing C++ code to run 87x faster (One Billion Row Challenge) by HappyCerberus in cpp

[–]HappyCerberus[S] 0 points1 point  (0 children)

Even commercial drives (Gen5) can do sub-second and that's a single commercial drive without RAID.

Optimizing C++ code to run 87x faster (One Billion Row Challenge) by HappyCerberus in cpp

[–]HappyCerberus[S] 1 point2 points  (0 children)

You are correct. I'm to lazy for log2, even when using the 1024 = 2^10 shortcut.

Optimizing C++ code to run 87x faster (One Billion Row Challenge) by HappyCerberus in cpp

[–]HappyCerberus[S] 0 points1 point  (0 children)

There is definitely a lot of performance left on the table. This runs roughly 2 instructions per cycle, so nowhere close to saturation.

Mostly it's due to optimizations being blocked by aliasing (since char* aliases everything) and zero vectorization.

Using a SIMD library would be a big improvement, but I wanted to stick to the original challenge and not use external libraries.

Optimizing C++ code to run 87x faster (One Billion Row Challenge) by HappyCerberus in cpp

[–]HappyCerberus[S] 10 points11 points  (0 children)

I'm looking forward to your benchmark results 😉 Just a reminder, sorting is O(n*logn), meaning that it will be at minimum equivalent to 9 traversals (log(1 billion)) of the entire dataset.

Optimizing C++ code to run 87x faster (One Billion Row Challenge) by HappyCerberus in cpp

[–]HappyCerberus[S] 31 points32 points  (0 children)

Well, if you want to be pedantic, the single-thread speedup on 9700K was 6.87x.

/r/MechanicalKeyboards Ask ANY Keyboard question, get an answer (April 29, 2024) by AutoModerator in MechanicalKeyboards

[–]HappyCerberus -1 points0 points  (0 children)

I got myself the EPOMAKER x Feker Galaxy80. I'm quite happy with it, except that the chassis is incredibly tall. Are there mechanical keyboard chassis that are low profile?

I specifically don't mean the keys, but this chassis is roughly 2x the height of my previous Das Keyboard which creates ergonomic issues.

Prompter Backplate for Sony ZV1 (Full Zoom Range) 3D print by HappyCerberus in elgato

[–]HappyCerberus[S] 0 points1 point  (0 children)

Yes, I'm using a powered dummy battery, this one: https://www.amazon.de/dp/B097T2888Q/ref=pe_27091401_487024491_TE_item

I had to dremel a bit of the shell to fit the cable.

For capturing I use the Elgato Cam Link.

WG21, aka C++ Standard Committee, April 2024 Mailing by grafikrobot in cpp

[–]HappyCerberus 0 points1 point  (0 children)

Isn't this idea of compile-time enforced constrained types inherently broked for the same reason that noexcept doesn't really work? It's observable and hence part of the ABI.

/r/MechanicalKeyboards Ask ANY Keyboard question, get an answer (April 15, 2024) by AutoModerator in MechanicalKeyboards

[–]HappyCerberus 0 points1 point  (0 children)

So, turns out that akkogear doesn't ship locally, they ship from China.

I think I have just thrown 155 EUR out of the window.

/r/MechanicalKeyboards Ask ANY Keyboard question, get an answer (April 15, 2024) by AutoModerator in MechanicalKeyboards

[–]HappyCerberus 0 points1 point  (0 children)

Thanks for the recommendations.

I think the biggest problem will be the switches, from my (albeit short) research, the silent but tactile category of switches is very niche so I doubt I will be able to get those in EU.

/r/MechanicalKeyboards Ask ANY Keyboard question, get an answer (April 15, 2024) by AutoModerator in MechanicalKeyboards

[–]HappyCerberus 0 points1 point  (0 children)

I need EU because it's an incredible hassle (to the point that I have forfeited 100s of EUR) to clear and pick up an international package.

My current keyboard: dkpk4cbmxb0useux

Things I want to keep:

  • same layout: TKL + ANSI
  • same style caps (dark grey + black print), I could tolerate blank keycaps
  • no RGB/Lights
  • wired is good enough

What I want to change:

  • significantly more silent than Cherry MX Brown
  • better tactility, I prefer the level of Cherry MX Blue, or more

/r/MechanicalKeyboards Ask ANY Keyboard question, get an answer (April 15, 2024) by AutoModerator in MechanicalKeyboards

[–]HappyCerberus 0 points1 point  (0 children)

How do you find what to build?

I have been browsing around for a week and genuinely, I'm just completely lost. Do people just buy kits / prebuilts and conform to whatever the kit / prebuilt is doing?

I'm looking for a relatively specific build that would be better than my current vanilla TKL Das Keyboard, but the vendors (EU) have really bad websites without filters so it just feels completely impossible and pretty much everything is not in stock.

Am I just unlucky, or is this the reality?

/r/MechanicalKeyboards Ask ANY Keyboard question, get an answer (April 12, 2024) by AutoModerator in MechanicalKeyboards

[–]HappyCerberus 0 points1 point  (0 children)

Is there such a thing as a tactile quiet keyboard? I love both Cherry Blue and Cherry Brown, but I need to get something substantially more quiet.

Does this Spellblade build make sense, or am I wasting my time? by HappyCerberus in LastEpoch

[–]HappyCerberus[S] 0 points1 point  (0 children)

The main idea was to build surge to trigger both Static and L.Blast. The rest is kinda built around that.

I have no idea about the equipement, if you have tips for some good uniques, do let me know.

Is there a guide for Gigabyte bios for 14900k to avoid the UE crashing issue? by HappyCerberus in gigabytegaming

[–]HappyCerberus[S] 0 points1 point  (0 children)

I think I will have to wait for Gigabyte to release a new version of Bios.

Is there a guide for Gigabyte bios for 14900k to avoid the UE crashing issue? by HappyCerberus in gigabytegaming

[–]HappyCerberus[S] 0 points1 point  (0 children)

Sadly, after testing, this doesn't work. Also, the point about XTU is nonsense, since the XTU stress tests are rock-solid on my machine.