T
tanix
Please watch the Subject: header.
It has been modified by some fools to fragment this thread.
Right now, there are several threads that have CR/LF and blanks inserted
into subject line, which, according to NNTP standard, makes them all
different threads.
Here is the correct Subject header:
Re: Exception Misconceptions: Exceptions are for unrecoverable errors.
When you follow up on one of those screwed up threads, change
the subject as shown above.
Understood. I would not even conceiver of writing things like decoders
in perl or even Python for that matter.
:--}
No problem with that one.
Sure. Why not. As long as you keep things in proper perspective
and try to squeeze some performance out of a totally screwed up code.
I have seen plenty of cases where you can get several times more
performance without trying to squeze out every cpu cycle.
In fact, I have a luxury, if I need to squeze it even further,
hey, you've got some slack, go for it.
Except it is the LAST thing I am going to do.
That means, before you try to squeze those cpu cycles out of something,
better make sure you whole architecture is already as efficient as it
gets.
--
Programmer's Goldmine collections:
http://preciseinfo.org
Tens of thousands of code examples and expert discussions on
C++, MFC, VC, ATL, STL, templates, Java, Python, Javascript,
organized by major topics of language, tools, methods, techniques.
It has been modified by some fools to fragment this thread.
Right now, there are several threads that have CR/LF and blanks inserted
into subject line, which, according to NNTP standard, makes them all
different threads.
Here is the correct Subject header:
Re: Exception Misconceptions: Exceptions are for unrecoverable errors.
When you follow up on one of those screwed up threads, change
the subject as shown above.
aku ankka said:For a lot of tasks that is so true. But then there are things where
this argument doesn't work. If you have a heavy workload and budget
hardware, you will have to work on the optimization really hard. In
some workloads a good application architecture won't be any good
without razor sharp innerloop.
Think of 1080p mpeg-4 or h.264 decoding on Intel Atom; you don't have
the luxury of saying that "well hardware is fucking fast I'll just do
this decoder in Perl.
Understood. I would not even conceiver of writing things like decoders
in perl or even Python for that matter.
:--}
If the decoder skips frames, you suck. If you write 2% of the decoder
in assembler, for example, so that you can use instructions you know
the Atom has and tried to trick the compiler to use them in C/C++ (for
example) without success, you just say: "**** THIS SHIT" and get the
job done. You squeeze extra 8% of performance out of your code, and
meet the target performance (full framerate =3D no dropped frames and
some headroom for higher bitrate files), job well done.
No problem with that one.
If the Atom platform has GPU, you might want to write CUDA / OpenCL /
GLSL / CS / etc. code to use the graphics processor to do some last
stages of the decoding, so that you can write directly into a
texture / framebuffer object. If nothing else, the YUV-to-RGB
conversion at least can be done in the GPU. For that kind of task, you
use the langauges that you must.
But yeah, for some simple flow control logic and stuff like that, we
got practically endless CPU cycles. But as always, absolute statements
are inaccurate and misleading. Different strokes for different tasks
and all that, right sirs?
Sure. Why not. As long as you keep things in proper perspective
and try to squeeze some performance out of a totally screwed up code.
I have seen plenty of cases where you can get several times more
performance without trying to squeze out every cpu cycle.
In fact, I have a luxury, if I need to squeze it even further,
hey, you've got some slack, go for it.
Except it is the LAST thing I am going to do.
That means, before you try to squeze those cpu cycles out of something,
better make sure you whole architecture is already as efficient as it
gets.
--
Programmer's Goldmine collections:
http://preciseinfo.org
Tens of thousands of code examples and expert discussions on
C++, MFC, VC, ATL, STL, templates, Java, Python, Javascript,
organized by major topics of language, tools, methods, techniques.