in reply to Detecting whether UV fits into an NV
Is this an "It annoys me because"
- it doesn't look elegant
- my application needs it to be performant and even a short loop isn't
- some other reason I'm going to tell you about
If it is case 1 then I suspect you are out of luck. The only other ways I can think of doing it are even worse, or hardware dependent, or are a maintenance nightmare.
For case 2 there are techniques like binary searches that maybe can run faster or a really nasty looking series of if statements that amount to unrolling the while loop.
Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Detecting whether UV fits into an NV
by syphilis (Archbishop) on Feb 26, 2020 at 05:58 UTC |
In Section
Seekers of Perl Wisdom