Sorting the rows in the table based on the first character - speed-problem

Hello

I have a text file with a lot of lines. The file is imported into LV, and must be sorted by the first character.

It works very well, but gets very slow lines if too.

If 40,000 lines then take 0. 2 s.

If 400,000 lines then the time rises with factor 100 in 25 years.

If 1,000,000 lines then the weather is dry 222 (~ 4 min)

Attached is the code which sorts a table to text.

The number of lines can be set with the meter of the loop (Loop-counter * 4 = NumberOfLines)

The elapsed time is displayed.

How to speed this up? (Or check the more linear time number of rows)

Thank you

You can try something like that. If you treat a table line by line, you end up taking a lot of time.

Sorry I have a problem of fixing of the VI.

Tags: NI Software

Similar Questions

  • Change the color of cell based on the first character of the value of the field

    Inside of a RTF model, I have a field called I_DESCRIPTION.

    If the first character of the value of I_DESCRIPTION is 'E' then I want the table cell to be red. Otherwise, I want it to be blue.

    I thought I'd be able to use the following type of code:
    <?xdoxslt:ifelse(substring(I_DESCRIPTION,1,1)='E', 'IT IS E', 'Not E')?>
    The above works. The only problem is, I don't know how to change the above, so that instead of print 'IT IS E' or 'NOT E' it changes the color of the cell in the table in red or blue.

    I guess I have to put something like the following in the second and the third argument to the ifelse() function:
    <?attribute@incontext:background-color;'#FF0000'?>
    But after much trying, I can't work on everything at is how this fits.

    Ideas or suggestions appreciated.

    Thank you
    Andy

    Hi Andy,.

    You can try this:

    1. in the cell where you view the description field, insert a form of conditional formatting field and use the following code: Red

    You will need to check the condition of other another field of form CF: Blue

    Hope this helps.
    Thank you!

  • TextBox multiline missing the first character after the new line

    Hello, I do a pdf report that swaps 2 pages back (the content is the same except for one table), essentially what happens when you click on the button 'page swap' is:

    1. get all the values of the fields in the page that will be deleted in a table "buffer".
    2. delete the page
    3. Insert the other page
    4. Fill out all field values values in the buffer

    So the thing is that in line with several text boxes is missing the first character each new line after this process if I change the content, if I do not change the content, while I share the pages and transfer field values, it makes it ok, it doesn't matter what line change it and how many lines I change in the text box together multiline each new line, I get a character less at the beginning of a new line (except for the first character of the first line).

    I'll try to work program autour with text.replace ('\n', '< br >') or something if I miss a few key configuration for this.

    I use Acrobat Pro 11.0.06 on a Windows 7 Professional client on a 20(3.13.10-200.fc20.x86_64) of Fedora host.

    Thanks in advance

    If you remove the option of formatting rich text for the field, it works fine. "In addition, I don't understand why you need the whole thing to replace line breaks with.
    "tags...". It is not at all necessary.

  • Lose the first character in the e-mail address

    When I go to enter an e-mail address, I start typing the address in the required field.  When I type '@', the first character of my e-mail address disappears from the input field.  For example, I type 'jstewart' and when I type the symbol @, the letter 'j' disappears.  This happens on all websites and happened the last 2-3 months approximately.  Someone has an idea what is the cause?

    In the menu bar, you select

    Change ▹ Substitutions

    and uncheck all the options. Test. If the problem is resolved, you can experiment with the reactivation of some options to isolate further the cause. You can change text replacements tab in the keyboard preferences window text.

  • How to set the first character as selections in the EditField.

    Hi friends,

    I am a third-party application that I have to set the first character as capital.

    so please help me how to set the first tank as capital.

    Take a look at AutoTextEditField - maybe you can use this to do it automatically...

  • How to create an edit field that auto-met uppercase the first character entered?

    I need to create an input field to enter names (first name, last name, etc.). I would like the field behaves similar to the behavior of these fields when you enter a new contact into the native Contacts app: the first character is automatically capitalized, however, if the user deletes the character, and, without waiting too long, entered another letter, the first newly entered character is not capitalized.

    I was able to create such a field myself by creating a custom TextFilter, however, I can't believe simply that this field is not readily available. Anyone know if this field is readily available, or at least can be easily created by small amount of customization of an existing class?

    AutoTextEditField what you are looking for.

  • How to make a text field to accept a capital letter has or a number in the position of the first character and only the numbers after that?

    Hi all

    We have a text field in one of our screen in our mobile app. Currently the user can enter alpha numeric characters in this text field.

    It is now that this field should accept a capital letter A or a number in the position of the first character and only the numbers after that.

    Could someone let us know how to do this?

    Thank you.

    Or, how about the substitution of this abstract method in textFilter?

    public boolean validate(character char,
                            AbstractString text
    int position)

  • Limit the first character in the text field to the letter and numbers?

    How can I limit only the first character entered in the text field as the letter H (uppercase) or any number? Thanks in advance.

    function of validateMemberID was a mistake on my part misnamed it. I thought about it...

    At the level of the JavaScript document

    Allow only characters that match the regular expression
    function validatePartialMemberId (value) {}
    return / ^ [H0-9]?\d{0,10}$/.test(value);
    }

    function validateFullMemberId (value) {}
    return / ^ [H0-9]\d{10}$/.test(value);
    }

    function checkMemberId() {}
    Get all of the characters that the user has entered
    var value = AFMergeChange (event);

    Allow the land to be developed
    If (! value)
    return;

    If (! event.willCommit) {}
    Event.RC = validatePartialMemberId (value);
    }
    }

  • Grep to add the tab character after the first character?

    Hello

    GREP assistants are able to help with a question?

    I am trying to add a tab character after the first character in line in a paragraph style. So, for example, I would like to a tab after the I, D, O and N in the following poem...

    Can Wincy spider climbed up the spout
    Down came the rain and swept away the spider
    Is out the Sun and dried up all the rain
    Now can Wincy spider went up the spout again


    Thank you!

    To find

    ^ \w

    Implement

    $0\t

  • How a variable may display the first character that is on the page?

    I'm creating a phone book and each page to see the alphabet the first listing on the page on the top - only a single character.

    Can you tell me how to proceed?

    The thing, of course, is how to apply the character style.

    You'll want to have she asked the first character of EACH list so that headers update when you change and if you do not need to go through page after page by applying the style. You can do this with a nested Style applied through 1 character as the first litter of style in your paragraph style definition (and this character style has no need of any other than a name defiintion of work for this), or, if you already have some nested styles, you can use GREP as well as nested styles style. You would use ^. as the string to match. This means that the first character of a paragraph.

    The same work of techniques for a whole word wil. For nested style, change to 1 character through 1 word for GREP change to ^ [\u\l]+ which is any combination of upper and lowercase letters the latter at the beginning of a paragraph, but stop matching when it hits a number, punctuation or spaces.] If you have numbers in the lists to be used, you can add \d to the class in the above GREP.

  • Change the case of the first character in the lists in InDesign CS6

    Hello

    I have a few long documents that contain lists that look like this:

    • Lorem ipsum dolor sit amet, 195kgs Adipiscing elit
    • SED turpis elementum hendrerit lacinia lorem convallis
    • sed has nibh tortor non commodo lobortis sed felis.

    Now I need to make the first character in each list of capital letters, IE:

    • Lorem ipsum dolor sit amet, 195kgs Adipiscing elit
    • SED turpis elementum hendrerit lacinia lorem convallis
    • Sed has nibh tortor non commodo lobortis sed felis.

    The problem is there is a CAP in the lists that must be maintained, and I can't create a list of exceptions (words to ignore).

    Is it possible to change only the first character in the list in capital letters?

    The lists are in style.

    Any help would be appreciated, thanks :-)

    Hello

    This will make real ceiling, but it is not dynamic.  It could be made dynamic with an event listener, but it's probably not worth.

    Be sure to change the names of paragraph on script style

    // By Trevor http://forums.adobe.com/thread/1068926?tstart=0
    #target indesign
    #targetengine main
    app.doScript("main()", ScriptLanguage.javascript, undefined, UndoModes.FAST_ENTIRE_SCRIPT, "Capitalise Lists By Paragraph Styles");
    function main()
    {
    var  myDoc=app.documents[0],
           myStyles = ["Paragraph Style 1", "Paragraph Style 2", "Paragraph Style 3"], // change to correct style names
           l = myStyles.length, myFinds = [], fl;
    
    app.changeGrepPreferences = app.findGrepPreferences = null;
    app.findGrepPreferences.findWhat = "^\\l";
    while (l--)
        {
        app.findGrepPreferences.appliedParagraphStyle = myDoc.paragraphStyles.itemByName(myStyles[l]);
        myFinds = myDoc.findGrep();
        fl = myFinds.length;
        while (fl--) myFinds[fl].contents = myFinds[fl].contents.toUpperCase();
        }
    }
    
  • Zero setting in order to display the first character

    I know it must be simple, but I'm trying to get a zero in order to display the first character of a field when necessary.  For example, the last 4 of SSN.  Any help would be appreciated.

    Hello

    You can do this in the Templates dialog box. Select the object and go to object > field palette. Here, you can click on the button templates and modify the view model.

    For example, it would display an insignificant number without zero: 12

    NUM {zzz9}

    While if you use 9 it displays zeros: 0012

    NUM 9999 {}

    Hope that helps,

    Niall

  • Address for new tabs bar loses focus after you type the first character

    All new tab to open switches focus to the bar address (which I do), but as soon as a beginning by typing, I can get more than 3 or 4 characters before it loses focus, and no other keys are entered.

    I have a load of search keyword set up, rather than using the separate search bar, so I can't for example, quickly hit Cmd + T to bring up a new tab and then type "im [keyword]" to search Google Images directly.

    The problem is now that I can get the first letter, perhaps the first, but cant type anything else because the address bar loses focus.

    This has happened

    Each time Firefox opened

    == 3.6.4 unknown, downloaded to test, he did for the first time since the installation.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of your modules is causing your problem (switch to the DEFAULT theme: Tools > Modules > themes).
    See the extensions, themes and problems of hardware acceleration to resolve common troubleshooting Firefox problems and troubleshooting questions with plugins like Flash or Java to solve common Firefox problems

    If this does not work in safe mode and then disable all your extensions and then try to find out who is causing by allowing both the problem reappears.
    You can use "Disable all add-ons" window the startup of Firefox to solve the issues in Safe Mode to disable all extensions.
    You will need to close and restart Firefox after each change via "file > exit ' (Mac: ' Firefox > leave";) Linux: "file > exit ')

  • Firefox stops allowing me to enter my URL once I get the first character. I have to re - click in the URL block to continue.

    When I click to enter my URL request, only you can enter a character before that Firefox leaves this block. When I click on new, I can continue to enter my information. This happens every time. Same thing is happening in the Yahoo or Kiwee Toolbar.

    This has happened

    Each time Firefox opened

    == I installed Firefox

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of your modules is causing your problem (switch to the DEFAULT theme: Tools > Modules > themes).
    See the extensions, themes and problems of hardware acceleration to resolve common troubleshooting Firefox problems and troubleshooting questions with plugins like Flash or Java to solve common Firefox problems

    If this does not work in safe mode and then disable all your extensions and then try to find out who is causing by allowing both the problem reappears.
    You can use 'Disable all add-ons' on the start safe mode window.
    You will need to close and restart Firefox after each change through "file > exit" (on Mac: "Firefox > Quit")

  • read the first character of each line

    Hello!

    I have a problem with the reading of a text file in LabView which I think is pretty easy to do, but since I'm really new to labview (and programming at all) I'm having a hard time to understand.

    So basically, I use the VI 'write file to measure' to write some test results to a text file. I'm just the ones and zeros so the text file looks something like this:

    1.00000

    0.00000

    1.00000

    ..

    and so on.

    I would then import these values in labview but I don't want decimals and I would like that everything on the same line, something like this:

    1 0 1 0 etc etc.

    (the idea is to then be able to convert the values to a hexadecimal number 1-F, if for example the above entry would result in 6.)

    I tried to use the function of text file reading, but I don't know how to convert then the entrance of my desired format.

    Also if you have any idea on how to start playback at the first 1, and then read the next 4 entries contact that would be great as well.

    Any help is really appreciated!


Maybe you are looking for

  • How to create a recovery Partition?

    Hello I recently bought a MacBook Pro mid 2015 and immediately on the SDS for a level 1 to one. A few days after I had problems starting (never had in 6 years!), and after a few days, I have (fortunately) had solved the problem and my Mac works OK no

  • iCloud iOS issues 9

    Since the upgrade to iOS 9.0.1 or later I couldn't get iCloud to work properly. For example, I can use is no longer Apple pay. Whenever I have it try appears saying that I need to login to iCloud. I try and it fails (Yes, the password is right). In a

  • mydaq no supported devices

    Hello I'm having a lot of difficulty working with myDAQ. The DMM and other applications say that there is no device in charge when I installed correctly myDAQ (at least I think). I saw this topic came on the previous posts and I tried to apply some o

  • Call Of Duty 2

    Is there an any hope of MS do Vista (64 bit) compatible with games such as Call Of Duty 2? My old PC (XP) could not run smoothly as a result of not quite make min req so he sat waiting for a long time for me to play. I bought a new PC recently and th

  • Outlook Express Email of the pictures folder

    After working for years, when I try to send a picture to the pictures folder, Outlook Express shows a blank Contact plate for the email address. If I type and Email address in the To: window, it will not send the Email.