DICE PACKS BUNDLE
  1. #1

    Text fields, pasting large amounts of text, FGU very sluggish, FGC not.

    So one of the things I've been working on is a bulk import tool. Currently the text is 1900 ish lines long.

    FGC, lets me paste the text into the text field and becomes responsive after 2-5 seconds.

    FGU I paste the text into the text field and it hangs, for an extraordinarily long time (like 30+ minutes).

    There is an upside to FGU tho, once it DOES become responsive again I can press the "IMPORT" button and it will process all 1900 entries. In FGC it dies because of memory issues (expected)... FGC seems to be ok with 100-200 or so entries at a time.
    Last edited by celestian; January 28th, 2020 at 04:13.
    ---
    Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
    Documentation for AD&D 2E ruleset.
    Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
    Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.

  2. #2
    Question for you, does the process you are trying to achieve require that data be pasted into a text field? Is there any editing being done on the data after pasting it into the text field, but before the IMPORT button is pressed? What I use for the CSV parser is a simple local sCB = Interface.clipboardGetText(); which returns the entire contents of the clipboard into the sCB variable that can be processed. this takes almost no time at all, I've been able to do the text import on CSV files well over 20,000 lines long in less than a second.
    For support with any of my extensions, visit my #mattekure-stuff channel on Rob2e's discord https://discord.gg/rob2e

  3. #3
    Quote Originally Posted by mattekure View Post
    Question for you, does the process you are trying to achieve require that data be pasted into a text field? Is there any editing being done on the data after pasting it into the text field, but before the IMPORT button is pressed? What I use for the CSV parser is a simple local sCB = Interface.clipboardGetText(); which returns the entire contents of the clipboard into the sCB variable that can be processed. this takes almost no time at all, I've been able to do the text import on CSV files well over 20,000 lines long in less than a second.
    I am not pulling out of the clipboard no. They paste the data into a text field (stringu template/control to be exact). Once it's there they can review and then click import. This ensures they actually have what they want in the field and not some incorrectly copied data.

    The problem is FGU behaving differently than FGC.
    ---
    Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
    Documentation for AD&D 2E ruleset.
    Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
    Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
FG Spreadshirt Swag

Log in

Log in