LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
LukeASomers

Text search should only look in in numeric arrays if the search text is numeric

Status: Declined

Any idea that has received less than 2 kudos within 2 years after posting will be automatically declined.

The Text search function is indiscriminate in where it will look for things, to a silly degree that can cause noticeable lag.

 

I have a vi that returns a multi-dimensional array of u8. The array has over 2 million elements. I search this vi for the text 'asdf', and it takes two minutes to return that no, this vi does not conain 'asdf'.

 

I clear the array and try again, and the search returns instantly.

 

Well, that was a waste of time. Can we not do that?

3 Comments
tst
Knight of NI Knight of NI
Knight of NI

Numeric indicators can have format strings, which means they could have the text you're searching for. You could argue that this is an edge case, but someone else could argue that the array with millions of elements you're searching through is also an edge case.

 

It should probably also be pointed out that the find dialog has multiple options you can configure for the search and I often change them to optimize a specific search I'm performing. They might or might not help in your case.


___________________
Try to take over the world!
Intaris
Proven Zealot

But at least each element of the array has the SAME formatting, so there's perhaps a bit of optimisation which could be performed there.....

 

If the formatting os %d, %f, %g, %p, %b without any "ASCII" elements, then it cannot be within the elements.  It's an awkward situation which probably doesn't warrant much work but it is feasible to filter out the most obvious cases at least.

Darren
Proven Zealot
Status changed to: Declined

Any idea that has received less than 2 kudos within 2 years after posting will be automatically declined.