News for hackers. Stuff that matters.
Re:Do you know how much your computer can do in a second? by raverbashing on Sunday October 25, 2015 @05:16AM (#10446428)
True

It's amazing how somethings are extremely inefficient, and even worse, nobody questions themselves why this is like this

Most of 'this is taking too long' is because of IO, still, sometimes it's done in a very inefficient way as well

Re:Do you know how much your computer can do in a second? by pixl97 on Sunday October 25, 2015 @11:08AM (#10447058)
>is because of IO

Having moved to very fast SSDs and ramdrives in some cases, it amazes me how many applications can't take advantage of them. It's terrible when you have an app that appears to be IO bound on disk and move it to fast drives only to get a 2x speedup, while even a single cpu core isn't maxed out.

Re:Do you know how much your computer can do in a second? by speeder on Sunday October 25, 2015 @12:26PM (#10447295)
I bought a gaming laptop with a "theoretically" midrange GPU (it is in practice a shitty GPU, nVidia took a true midrange GPU, removed half of the chip, and overclocked it, hoping it will stay with midrange performance, instead the thing just overheats) and a Core i7...

It is a waste of money, I rarely see 100% CPU use, the few times I saw 100% CPU use was demoscene stuff, or some russian compression programs (that can do amazing stuff, like compress 60gb downloads into 20gb, but take 2 hours at 100% CPU to decompress).

It is evne worse that some games that theoretically would need all the CPU (games that has lots of entitites, or are physics or AI intensive), instead just have thousands of cache misses while they loop through their entities in the memory, and the CPU gets used like 20%.

Or they are single-core, even if made recently.

Re:Do you know how much your computer can do in a second? by raverbashing on Sunday October 25, 2015 @11:56AM (#10447195)
Even with ssds you can have issues like reading one byte at a time, saturating the sata link, etc
Re:Do you know how much your computer can do in a second? by Tyr42 on Sunday October 25, 2015 @11:28AM (#10447116)
I remember fixing a vim plugin that did one system call per character to be received because the IPC returned some number of xml objects, not even wrapped in a top level one, so the plugin didn't want to block by reading past the last > until it processed everything before it.

I fixed that to use non-blocking pipes and it was much better.