Clément Grégoire (@lectem) header
Clément Grégoire (@lectem) profile picture

Mostly moved to the place where the sky is blue. Performance, GPU APIs, multithreading and game engines specialist @siliceum. Does reverse engineering for fun.

Clermont-Ferrand, France
Joined August 2014
Photo by Clément Grégoire (@lectem)Photo by Clément Grégoire (@lectem)Photo by Clément Grégoire (@lectem)Photo by Clément Grégoire (@lectem)Photo by Clément Grégoire (@lectem)Photo by Clément Grégoire (@lectem)Photo by Clément Grégoire (@lectem)Photo by Clément Grégoire (@lectem)Photo by Clément Grégoire (@lectem)Photo by Clément Grégoire (@lectem)
To the fucktard designer at @SamsungMobile or @Android who decided that opening an update dialog under my fingers AT 15% battery WITH A BUTTON AT THE KEYBOARD LOCATION WITHOUT ANY FUCKING CONFIRMATION DIALOG OR GRACE PERIOD: YOU SHOULD BE FIRED AND EAT MY PHONE
Fuck you very much @Samsung. I've been postponing the oneui6.1 update for a while, and the dialog asking if I want to do it just popped WHILE I WAS TYPING TEXT. Result: I pressed "update" unknowingly because the button appeared right under my finger. I could have lost much
109
Clément Grégoire retweeted
C++26 Shipped a SIMD Library Nobody Asked For lucisqr.substack.com/p/c26-s…
4
35
2
138
27,630
Yearly report you should not be using GCP. It's not the first mishap with governments, ask Australia.
is gcp actually cooked
99
Ever wrote spin-locks or had to debug them? I have, and I got tired of seeing (and writing) crappy ones, so I did a real investigation this time. Spoiler: trust your OS. siliceum.com/en/blog/post/sp…
1
87
Clément Grégoire retweeted
GitHub's official "safe sleep" script: >is not safe >does not even sleep Microsoft just can't stop losing
59
108
40
3,602
715,127
That's it, one too many stupid post on this platform that popped out of nowhere. Every day my timeline is filled with more bullshist, crappy rethorics and politics, ads, lunatics and conspiracy speeches.
1
229
I used to just unfollow if I saw someone shared too many things I dislike. But now I can't even know who shared what, or even it it's related to people I follow and not just Musk playing with the algorithms.
1
127
I'll keep the account around as there are things I wrote or read in the past that I may want to read again, and to avoid the losing the handle to someone or some bot. Perhaps a bit of monitoring too, for accounts I like that didn't migrate yet but that's it. Happy 2025 I guess 🤷
111
So in the end, it seems that it was indeed some Minifilter that caused CreateFile to be so slow on PC. (Corporate Security software it seems). But this doesn't explain the issues seen on console... Perhaps it's not optimized for this at all since games tend to have big files ?
Performance people, I need your help ! What's the fastest way to open a lot of files on windows ? CreateFileW is slow as hell (slower than reading the file itself), are there ways to make it faster (some flags ? warming the MFT ?), obvisouly without changing the files? Thanks !
202
Damn, this sounds bad, as in "we have a process doing some heavy polling to see if someone drags and drops and eating CPU/blocking a core mutex" somewhere. Would love to see an ETL trace, but that's one reason why I'm still in Win10.
PSA: Apparently there is a kind of a fix for the 24H2 low intel CPUs perf. It's a very strange fix that basically disables in registry the option to drag & drop pins on your taskbar & apparently disabling that gives more perf... yeah I know🤦‍♂️ overclock.net/threads/24h2-c…
151
Performance people, I need your help ! What's the fastest way to open a lot of files on windows ? CreateFileW is slow as hell (slower than reading the file itself), are there ways to make it faster (some flags ? warming the MFT ?), obvisouly without changing the files? Thanks !
13
2
2
24
7,414
So I tried oversubscribing using more threads than cores, and this does not end well😅 All the boxes you see in this case are CreateFileW calls. So for now I'm limited to divide the cost by the number of cores. Note: This happens on both PC and console.
2
1
321
Oh, and there's plenty of CPU available ! So yeah, I'm guessing our access pattern is really hard... (no fat colored line => idle)
285
Fixed it: Most folks don't even know what a profiler is.
Replying to @SheriefFYI
most linux folks don't even understand the point of having a profiler with a GUI. Curious, what horrors @SuperluminalSft will find when they will have the linux port up and working :) I still remember when guys started to actually run a profiler on blender :D
1
1
186
If you are interested in the challenges of new CPUs, have a look at this talk! (especially the 2nd half related to NUMA, which I predict will be the most challenging)
127
I'm starting to slowly see loss of performance related to using `null` instead of `undefined` in @typescript. Given how much those constructs are used everywhere in the ecosystem, it's death by thousand cuts. (our JS engine is without JIT, no opt here) typescriptlang.org/play/?#co…
104
Clément Grégoire retweeted
Replying to @_plop_
It's not very reliable generally. For waiting, one option is to use CreateWaitableTimerExW with the CREATE_WAITABLE_TIMER_HIGH_RESOLUTION flag.
1
1
4
314