For OP's use case, which appears to have a max depth of maybe 3, invoking a shell program is going to be a LOT slower than just running the search. No matter how slowly it is implemented.
86 karma · joined October 26, 2013
For OP's use case, which appears to have a max depth of maybe 3, invoking a shell program is going to be a LOT slower than just running the search. No matter how slowly it is implemented.
(I am a non-smoker; have tried 2mg and 4mg gum, and find 4mg similar in some ways to having a 'bad trip'. (Light-headedness, freaking out, nausea, time-dilation.))
Maybe OP could automatically run his miners when such situations arrive, but I think it's unlikely to net anything like $17k/yr.
Edit: sliverstorm described this way better than I could.
If we assume the most optimistic parameters: $75 * 1mo * 60 instances = $4500 in profit for 1.5 weeks of work, or a rate of ~$156k/yr.
Edit: It looks like I misread his revenue numbers for profit. Oops! Even lower margins:
"My gross revenue was about $1000, and I paid Amazon $500 of that."
$500 for 1.5 weeks' work is only $17k/yr rate. Maybe flipping burgers pays better.
Also, I would guess the performance gains (from skipping malloc) would wash out the longer your average string gets -- even if the huge stack use doesn't kill your performance for some other reason (blowing the d-cache?).
In C, the first few are only if you include the C99 header <iso646.h> (the later ones are just digraphs). Are they included by default in C++?