1/n Probably this is not too well known, I know I didn't though @andrey_akinshin has a blog post about it. If your software uses a lot of Stopwatch [QueryPerformanceCounter] and we do for showing a lot of detailed measurements to our users, there are a few gotchas. That is 30%.
2/n That measurement for me was strange, its like: How on earth could I miss 30% of the runtime cost just calling the Stopwatch Start/Stop on a core routine? It's the kind of thing that just don't escape the WTF?!?! label.
3/n I hypothesize, the only reason how that can happen is because we are somehow transitioning into kernel space. It didn't add up, at all. And when I mentioned @ayende though similarly to me.
4/n Well it turns out, it is not quite like that. There was a small little caveat about how I never found this before. Some may remember that I was having problems with measurement noise and had to beef up the rig.
5/n Apparently, the @ASUS TUF Gaming X570-PLUS comes with HPET activated by default, and because that is so Windows will just decide to use it instead.
6/n What happened when we disable it? Well, we are back to normal. It is still high, but if you want really detailed metrics you need it. So if you use a lot of Stopwatch and you dont need the extra resolution of HPET on a production machine, you can just go ahead and disable it.
7/n For reference I leave you with this excellent post by @andrey_akinshin about the internals of Stopwatch. aakinshin.net/posts/stopwatc…

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Federico Andres Lois

Federico Andres Lois Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @federicolois

10 Mar
How better the world would be if people would exercise some brain activity before activating the muscles to hit keyboard keys at pseudo random. The masks ninjas clearly have absolutely no advantage.
And that is IF I would look away from evidence. It is highly probable that most influenza strains comes from... GUESS WHERE!!!! Asia, and I am pretty sure that is not a shock to anyone. A simple google search: "where does influenza comes from" suffices

cidrap.umn.edu/news-perspecti…
Obviously a young and inquiring mind like @jamesbleekerPL would notice also that massive (no other word would suffice) influenza on 2019... Let me guess... What did happen at the end of 2019... Anyone said 13 different SARS-Cov-2 sequences by December??? independent.co.uk/news/world/asi…
Read 4 tweets
9 Mar
Let's play a game shall we? I will post mobility charts from countries. Let's see if you can pin down which one is which.
What is the location I posted.
This one is gonna be easy.
Read 14 tweets
7 Mar
I live in a country that has mandated masks even in outdoors (where I don't use it, period). I vote with my wallet, BUT, for maximum civil disobedience this is my mask for when I have no choice (shops, kids school, etc). It reads: "Doesn't filter aerosols. Doesn't work for CV19" Image
For maximum irony, this is a triple layer, high quality, medical grade mask (even though ear loop design is quite crappy IMHO), next step: N95 (but they are a pain to wear). So when anyone says something I tell: "Come on? Haven't you read the evidence?" and then I explain.
Then I point them to the hilarious European CDC study and explain the how 19 out of 20 are just bad evidence and the only one that its actually good, is compatible with higher infection rates. Details here:
Read 5 tweets
1 Mar
1/ Because by judging from other countries (mine for example) that is completely true. Just took my kid to primary school, all parents packed together (with their 'masks on' of course). Who would have known? Right?
2/ But let's make it fun. Every thread is better with a poll. Do people use masks properly in your city? Keep distance, don't touch it, over the nose... you know the usual.
3/ That's why I wrote this small rant a few weeks ago. Because using PPE in the wrong way is worse than not use it at all.
Read 15 tweets
23 Feb
1/ There is absolutely no discussion that if you have a disease that doubles its size every 3-4 days and 2% of those infected requires hospitalization you are going to have a quite difficult situation to deal with. Not even a newbie modeler would disagree with @neil_ferguson
2/ But as @gidmk told me once in one of our initial exchanges (and respectful disagreements): "Everyone comes into epidemiology for the uncertainty and stay for the nuance" (if I recall it correctly, corrections please). The entire response rest on those nuances, let's dissect.
3/ At least in my mind there is no doubt that the Ro of SARS-Cov-2 is very high (we estimated 3.3) and if we account for the UK variant we are probably 30% up from there. So, we can say we agree probably up to the decimals level.
Read 14 tweets
23 Feb
1/ When we wrote this paragraph back in October I wouldn't know how close to home it would hit. Back in October my mother-in-law (65+) fainted in the bathroom while having diarrhea. It was quite a scare as she got hit very hard.

Ref: medrxiv.org/content/10.110…
2/ Not long after my father-in-law (80+) was diagnosed with anorexia nervousa. Doctors presume that loneliness caused by the lockdown, plus the scare of the episode would have been more than enough to cause it.
3/ Back then I immediately told my wife that those were signs of COVID, being health personnel and working on the lab at the hospital knew very well the evidence. On her account, the evidence was definitely not anywhere near what they thought were signs of the disease.
Read 9 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!