Jump to content

Strange behaviour of "Unflatten From XML" (LV 7.1.1)


Recommended Posts

Hello,

I recently witnessed some strange behaviour in the performance of the "Unflatten From XML" function.

When unflattening an array of strings, the contents of the string have a huge impact on how quickly the function works. It seems that if the array contains strings containing at least one space character, the function runs more than 100 times faster. I've attached a VI which demonstrates this.

When I run this VI with nothing in the "String" control (this is the default), the unflatten takes ~2000 ms. If the "String" control contains just a space character, it takes 16 ms! If it contains any combination of characters with no spaces, it still takes more than 2000 ms. If it contains any combination of characters with at least on space, it goes back to less than 20 ms.

Anyone have any idea why this is the case?

Jaegen

Download File:post-932-1170961059.vi

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.