Importing a 41kb textflow is very slow

Hi there,
i ran into serious problems when I wanted to load a 41KB file of "text layout formatted" into a textflow... Flash player is freezing for about 30 seconds (but finally loads the text correctly). This file is basically a bunch of ParagraphElement (<p>) which can contain around 2000 chars for the longest, each paragraph containing spans and anchors (no more than 20 spans & "a" tags by paragraph).
My problem could be related to this one, but is not the same:
http://forums.adobe.com/message/3111903
Actually I use a RichEditableText, so the solution found by schipmold don't work for me, but i read in the post that "
If it is a big enough textflow, it is probably just taking too long.  There
are some performance improvements in 4.1 and more to come in Hero."
Is there no solution to either improve speed of importation (it's the parsing of XML / building of the object tree that are taking so long ?) or slicing the process of parsing so that the UI doesn't freeze ??? Is there no possibility of doing incremental parsing with the textLayout API ?? Can I "serialize" the TextFlow in order to load it faster ? Or am I looking at the wrong direction and what is taking so long is the rendering of the text ??
If I have to implement something to handle this, I have to know a bit more about the underlying implementation of TextConverter.importToFlow...
Otherwise I will have to rasterize the text and load an image, which is a really bad solution...
Anybody found a way to handle this kind of issue ?
Thanks

I realize that I was misleading completly...
My problem was not related at all to the textLayout implementation... but to the LayoutManager...
The RichEditableText is a child of some container, and I'm toggling its visibility and resizing it when I need to show some text. It seems that the cause of the freezing was that the RichEditableText had a 0 width when the textflow was loaded.
I tried to call validateNow() on the container and the RichEditableText before the loading of the text, and the measurement seemed to be ok, but the freezing still occured.
So I modified the MXML in order to force the component to have the right size at initialization phase, and toggled visibility and resized it programmatically after initialization with a creationComplete handler, because I need the component to be hidden by default.
And now it works !
What a mess...

Similar Messages

  • Why is importing raw as dng so very slow? 3 min a frame

    I have a canon 5d mark II, 4Gb compactflash card ultra II en extreme III
    Importing them by usb 2,0 reader to lightroom 2.6 on apple G5, 2,3 Ghz,  2,5 Gb DDR2 SDRAM. At the same time converting them to DNG and making a back-up to a other computer in the network.
    Importing time about 3 minutes a frame, so for about 150 pivtures on a 4 GB card 150 x 3 min = 450 min = 7 1/2 hour.
    Is this normal ?? Or what do I wrong?

    Do not believe you are doing any thing wrong. Several things could cause the slow process you are experiencing. I think the copy to another computer on a network is the main contributor.
    My preferred method would be to copy from the CF card direct to a folder on your HDD using a card reader (not directly from the camera). Then import into lightroom, converting to dng. Last do the back up of the dng files to the network computer using your OS tools.

  • ITunes only imports half the song+running very slow!

    Ok, so I've been reading through these postings and it looks as though many are experiencing the same issues! When I import a song to iTunes only portions of the file are imported, then iTunes skips ahead and downloads the next song. Also, the application runs very slowly and takes a long time to load. Are there any indications that suggest these issues will be resolved with the next update? Does anyone know when to expect the next version of iTunes? Will going to the Apple Store help my cause? I just spent $300 and I want this to work. What should I do? Also, it says I'm running v 6.0.0.18???
    hp laptop   Windows XP  

    Other people have been having similar problems with songs over the last few days, I assume that there has been a problem with Apple's servers.
    Depending upon what country that you are in (music can't be re-downloaded in all countries) then try deleting it from your iTunes library and redownload it via the Purchased link under Quick Links on the right-hand side of the iTunes store home page on your computer's iTunes : re-downloading.
    If you aren't in a country where you can re-download music or if it re-downloads in the state then try the 'report a problem' link from your purchase history : log into your account on your computer's iTunes via Store > View My Account and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find that song and use the 'Report a Problem' link.

  • Lightroom 5.5 Import from Catalog *very* slow performance.

    Importing from a second catalog from a shoot is *very* slow with the last version or couple of versions of Lightroom.  It's been about 20 minutes and the import is moving glacially slow and is only about 20% done.
    Here are as many stats as I have:
    iMac 27" 3.5Ghz Core i7, 32G of ram, 3T fusion drive (the late 2013 model maxed out)
    Master catalog has 117,000 images in it.
    The catalog I'm importing has 948 images in it.
    CPU use during the import is 100% used by lightroom (note that the multiple CPUs can go to more than 100% so this means I think that one CPU is maxed out, though LR can sometimes take 500% of my CPUs during an export)
    Lightroom is using 4.2G of RAM (10G free in activity monitor)
    Hard drive is fairly full, but still has 366G free on it (so about 10%)
    Lightroom Mobile sync is enabled (not on this folder I don't think) but says "service unavailable" at this point.
    Lightroom is fully up to date (5.5) on both iMac and laptop (also a mac in case that matters).  Both are up to date with the latest OS software.
    How I did it was:
    Export the shoot as a new catalog on my iMac
    Transfer it to my laptop (smart previews only, no masters)
    Edit images, metadata, etc
    Transfer the entire folder back (.lrcat, previews, smart previews) to iMac
    In my master catalog do an import from catalog
    Waited for ages for checking for dupes (which I can understand with such a big catalog)
    Selected to import all, changing metadata and develop edits, and selecting to put new images in the folder (not sure why it asked as there weren't any new images)
    The last time I did an import I started it and then went out somewhere so I didn't notice how long it took, but this seems completely crazy.  In the time it's taken to write this up it's now about 20 minutes later and the progress bar is maybe at the 33% range.  It's still working away, it's just crazy crazy slow.
    Anything to help out or debug would be greatly appreciated.  I suspect it's pure size of the catalog, but 120k isn't outside the realm of what I've heard people say works fine, or maybe the Fusion drive (maybe the OS is trying to move files around behind the scenes)? 
    Either way this didn't seem to be an issue until the last couple of versions (I haven't gone and re-installed 5.4 or 5.3 to check) and it's starting to really frustrate me

    Hi Jim,
    Great suggestion! It opens perfectly fine on its own. I even went as far as re-exporting it once it loaded but am still experiencing the same issue. That same catalog loads perfectly fine on my assistant's iMac.
    I can't really think about anything that changed in my environment with the exception of a new Bootcamp partition to run windows on an external Thunderbolt HD but I doubt this is related.
    I'm open to any suggestions while I am trying this again... 10 minutes of 'Checking for changed and duplicate photos'.

  • Import ABAP running very slow

    guys, I am installing IDES EHP4 on a solaris box with oracle 10g. The import is running very slow. in 20 hours, it has only imported 10 out of 105 jobs. Top comand shows i have 26 GB free physical memory (out of 48GB total) and also 123 GB free swap out of 150 GB total. CPU load is also only 3 %. I have already configured the project file acording to sap recommedation. MY oracle init file configuration looks like this. Also, you will see my project and user_attr files below. Please advise what i can change tomake things go faster.
    # (c)Copyright SAP AG, Walldorf # # @(#) $Id: //bc/701-1_REL/src/ins/SAPINST/impl/tpls/ora/ind/INITSIDBASE.ORA#1 $ ########################################################### ########################################################### # PART I, TUNING PARAMETERS # ########################################################### #### SYSTEM GLOBAL AREA BUFFERS # Total System Global Area = sum(bytes) of all caches # Variable Size = shared_pool_size (approx.) # Database Buffers = db_block_buffers * db_block_size # Redo Buffers = log_buffer # # unit of shared_pool_size: bytes # unit of db_block_buffers: number of cached blocks # unit of log_buffer: bytes shared_pool_size = 2264924160 # 10% of shared_pool_size shared_pool_reserved_size = 226492416 log_buffer = 1048576 #### MANAGING SORTS # A small sort requires sort_area_retained_size in # memory. Larger sorts are allocating segments in # PSAPTEMP. They are using sort_area_size in memory. sort_area_retained_size = 0 sort_area_size = 2097152 #sort_spacemap_size = 512 #### PGA-PARAMETERS open_cursors = 800 #cursor_space_for_time = true #### LOCKS # dml_locks = processes * 50 dml_locks = 4000 #enqueue_resources = 8000 #### CPU-PARAMETERS #spin_count = 200 #_cpu_count = 4 #### TUNING ARCHIVING #log_archive_buffer_size 127 #log_archive_buffers 4 #### USE VECTOR READ #use_readv = true #### OTHER TUNING PARAMETERS #sequence_cache_entries = 100 #sequence_cache_hash_buckets = 89 ########################################################### # PART II, CHANGEABLE PARAMETERS # ########################################################### #### CONTROL-FILES # the controlfiles should be mirrored to every new # database mount point @SAPDATA_HOME@/sapdata<#> #control_files = XXXXX #### AUTOMATICLY STARTED BACKGROUND PROCESSES #### MANAGING LOG SWITCHES # checkpoints occur only when switching logs, if # log_checkpoint_interval * size of OS blocks > size of # the actual redo log log_checkpoint_interval = 0 #log_checkpoint_timeout = 0 #### PROCESS-PARAMETERS # The number of allocated semaphores is equal to the # number of processes # sessions = 1.2 * processes processes = 500 sessions = 600 #### AUDITING AND STATISTICS # sql_trace=TRUE # audit_trail = true # db_block_lru_extended_statistics = 1000 # db_block_lru_statistics = true ########################################################### # PART III, STATIC PARAMETERS # ########################################################### #### DB-NAME db_name = XXX #### DB-BLOCKSIZE db_block_size = 8192 #### DB-FILES db_files = 254 #### OPTIMIZER MODE #optimizer_mode = choose #optimizer_search_limit = 3 #### PATHS / DESTINATIONS / TRACES # /xxx\ : trace files of the background # processes # xxxx /saptrace/usertrace: trace files of the user processes # log_archive_dest is a destination, not a path. # The archivefiles get the name # XXXXXXX background_dump_dest = xxxx user_dump_dest = xxxx core_dump_dest = /xxxxx log_archive_dest = xxxxxx #log_archive_format = %t_%s #### OTHERx # reduce_alarm only supported on HP #reduce_alarm = TRUE #### ORACLE OPS PARAMETER remote_os_authent = true # retention time for RMAN backup information in control file control_file_record_keep_time = 30 #see SAP note 124361 #db_file_multiblock_read_count = 8 log_checkpoints_to_alert = true #### OPTIMIZER MODE #optimizer_index_cost_adj = 10 #### AUDITING AND STATISTICS #timed_statistics = true compatible = 10.2.0 parallel_execution_message_size = 16384 query_rewrite_enabled = false replication_dependency_tracking = false star_transformation_enabled = true undo_retention = 43200 undo_tablespace = PSAPUNDO undo_management = AUTO pga_aggregate_target = 3019898880 sga_max_size = 84529848320 db_cache_size = 4264924160 job_queue_processes = 1 remote_login_passwordfile = exclusive recyclebin = off event = "10191 trace name context forever, level 1" FILESYSTEMIO_OPTIONS = setall OPTIMPEEK_USER_BINDS = FALSE BTREE_BITMAP_PLANS = FALSE INDEXJOIN_ENABLED = FALSE INMEMORY_UNDO = FALSE OPTIMIZERMJC_ENABLED = FALSE SORTELIMINATION_COST_RATIO = 10 TABLELOOKUP_PREFETCH_SIZE = 0
    USER_ATTR FILE --- I have replaced my sid with SID for privacy reasons ************************************
    adm::::profiles=Log Management lp::::profiles=Printer Management postgres::::type=role;profiles=Postgres Administration,All root::::project=MYSID;auths=solaris.*,solaris.grant;profiles=Web Console Management,All;lock_after_retries=no;min_label=admin_low;clearance=admin_high SIDADM::::project=SID oraSID::::project=SID
    ************************************** PROJECT FILE --- my sid replaced with 'SID'*********************************
    system:0:::: user.root:1::::process.max-file-descriptor=(basic,65536,deny),(priv,65536,deny);process.max-sem-nsems=(priv,512,deny);project.max-sem-ids=(priv,512,deny);project.max-shm-ids=(priv,256,deny);project.max-shm-memory=(priv,18446744073709551615,deny) noproject:2:::: default:3::::process.max-file-descriptor=(basic,65536,deny),(priv,65536,deny);process.max-sem-nsems=(priv,512,deny);project.max-sem-ids=(priv,512,deny);project.max-shm-ids=(priv,256,deny);project.max-shm-memory=(priv,18446744073709551615,deny) group.staff:10:::: SID:400:SAP System SID:SIDadm,root,oraDBSID::process.max-file-descriptor=(basic,65536,deny),(priv,65536,deny);process.max-sem-nsems=(priv,512,deny);project.max-sem-ids=(priv,512,deny);project.max-shm-ids=(priv,256,deny);project.max-shm-memory=(priv,18446744073709551615,deny) **************************************************************************************************************************************
    what can i do to make the import faster ? my system definitely has enough resources but i am not able to utilizethem all. Thanks in advance

    You posted this in two different forums and it is not allowed.

  • Very Slow preview rendering for lightroom 5 on import

    I am seeing very very slow rendering of preview images only when using the import function in lightroom 5. By slow, I mean for a shoot of 60 shots in raw, it could take 30 minutes before I can preview them all in the pane to see which ones I want to actually import. This was not an issue with lightroom 4. It is not an issue when using lightroom. Previews are fast there, even for images I've never pulled up before.
    My hardware is a PC, with an intell i7 chip, and 16 gig of memory. My nvidia graphics card has the latest drivers.
    I've seen a few others reporting this issue, so I'm trying to log it as a bug. Even though the dial up support text on the adobe lightroom says available 24/7, it now plays a voice recording that says only available m-f.
    Brad

    I'm having the same problem using Windows 7 (64b). I just took a shoot over the weekend for a significant birthday event. Now I can't load the photos. The work-around doesn't work as the program freezes before I get the chance to select the camera under "files".
    I recently upgraded from 3.6 to 5 as I was also noticing a slowdown in the import function. That turned out to be a bad move I think. I also deliberately cleaned up the CF card and removed all my video recordings, as this seems to be reported as part of the problem, but to no avail.
    This seems to be a pretty major bug to have in a major release that's been around for a while now, that I'm expected to pay for, and no sign of a resolution to date!
    Cam. 

  • Aperture 3.1.3 Very slow importing raw files

    Aperture 3.1.3 Very slow importing raw files please help
    Pro Photographer. I have a Mac Pro Quad core 1 yr old with 12GB Ram. I import via 2 Firewire 800 card readers - A Lexar & a UDMR Reader.Only using them singly. System has 4 1TB hard drives 1. Applications, 2. Aperture Library, 3. Aperture Vault, 4 Time Machine
    On a photo shoot, first CF card may download and complete in less than a minute but the next card with a similar number of images may take 10 minutes.
    Sometimes if I swap card readers, this can speed up download but then everything slowly grinds to a halt.
    I have closed down all other programmes, switched off Faces and Enable Gestures - switched off  Look up places.
    Situation driving me nuts as we shoot and view images with customers immediately after the session and download time effecting the amount of time we have to do this. Nothing seems logical as such a high spec machine should theoretically fly through this.

    Have you upgraded your OS ans all your Apps to the latest Versions and also rebooted the system?
    Turn on the Activity Viewer (Windows ->Show Activity) while importing, to see how Aperture is spending its time.
    Also launch some tools from the Application -> Utilities folder:
    launch the Console window, to check for diagnostics /error messages
    launch the Activity Viewer, to see how much RAM and CPU time Aperture and other processes are using.
    How much space is free on your system drive? And on the drive you are importing to?
    If you find in the Activity Viewer, that Aperture is slow, but de facto using not much CPU time, then the problem may be a corrupted Aperture Library or corrupted preference files.
    Try to import into a new, empty Aperture library and see if the problem persists.
    If you have no problems with a new Library, try the Aperture 3: Troubleshooting Basics:
    http://support.apple.com/kb/HT3805
    Start with repairing permissions and repairing the library.
    If none of the measures outlined there, or you need further help, please report back.
    Regards
    Léonie

  • DB Import is very slow on ESX

    Hi All,
    We are performing OS/DB migration from Sun/Oracle to Win/SQL server. Export took 9 hours when we perform import it is taking more than 25 hours and we are using ESX ( VMWARE), import system configuration is
    OS : Windows 2003
    DB : SQL Server
    8 CPUS
    32 GB RAM
    1.5 TB HD ( for databases)
    500GB for log files 1
    500GB for log file 2
    Importing is taking very slow and we are split export and import method.  Please help me reason for the slow performance and let know any specific configuration we have to use for sap on vmware specific to SQL Server DB.
    Regards,
    Kanthi.

    > - How big is your queued disk I/O? (use performance monitor to check)
    This number indicates whether you have an I/O problem (using too many R3loads in parallel). If you want to trace down performance problems you should get familiar with the Windows tools, you may need that later during production also.
    > - How many parallel processes are you running?
    >            
    >                       20
    And you make sure using migration monitor that no packages of the same table are loaded simultaneously if you have split the talbles?
    > Network team is complaining about some ESX issues are experiencing, is this effect to the performance of the DB-Import.
    I can't say since I don't know if you load the data from a network drive or locally or if the system loading the data into the database is local or remote.
    I suggest you open an OSS call, they may have a look on the system and may give you some idea. Just from a description without having actual I/O key numbers it's impossible to give any hint where to look at to speed things up.
    Markus

  • Order Import program run very slow

    Hi
    I use Order Import program to create sale order from tables interface.But it run very slow,about two hours for one record.
    How can i do it run fast?
    Thanks

    Hi,
    before checking metalink for patches (there are some performance related patches for order entry)
    you should check if statistics OE related tables
    - OE_HEADERS_IFACE_ALL,
    - OE_ORDER_HEADERS_ALL
    - OE_LINES_IFACE_ALL
    - OE_ORDER_LINES_ALL
    are up to date (check column last_analyzed in dba_tables). If not, run gather schema statistics
    program to collect current table statistics for OE schema.
    If this does not help, have a look at metalink and query for "order import" "performance"...
    Regards

  • Updated to LR 5.4, images now importing extremely slow. After importing and rendering images are still very slow to go through and develop. No issues in LR 5.3 which was very fast.

    After importing and rendering images are still very slow to go through and develop. No issues in LR 5.3 which was very fast. Canon,Nikon, Leica and Fuji files all rendering slow. iMac 2.9 ghz 16gb RAM OSX 10.8.5. Catalogs and images are kept on external drives. Drives running fine. Really need a fix on this since I'm norally imported and processing at least 4,000 images per LR Catalog. Is there way to revert back to 5.3? I can't use 5.4 is its current state. Thanks.

    Download LR 5.3 and install it
    By the way, lots of people have this complaint about LR 5.4, and the advice I give is to use LR 5.3 unless you need one of the new camera models supported by LR 5.4

  • Importing and exporting from cc premiere pro is very slow

    importing and exporting from cc premiere pro is very slow, the system has i7 processor and memory is 64 gb and has internal raid storage. what could be the issue.

    If you would like to test the tuning and setup of your Premiere installation go to our Premiere Pro BenchMark PPBM, the Instructions page has the download file.  This single download can test Premiere 6, 7 or 8 with the identical benchmark.  We maybe able to tell you why you are having problems.

  • Very very slow import using LOG and Transfer

    I am using a CANON VIXAIA HF10.and the clips are importing very very slow. The max time on each clip is only 5 min or so. Is there a way to speed this up? Thanks.

    Log and transfer only supports AVCHD. It does not support AVCHD Lite, nor will it work with Motion JPEG media. You could use third party software to convert it, or iMovie and then export a QuickTime movie from there in the correct codec and format.

  • Can you help me, i try to import video from my gopro to final cut pro but when i play the video he become very slow and i lose qualiter

    can you help me, i try to import video from my gopro to final cut pro but when i play the video he become very slow and i lose qualiter ???

    Right click one of yur clips in the event browser and choose Transcode Media. Make a test project and playthat clip. See whether that solves your lag.
    Russ

  • Importing VERY slow

    I have a Dell Inspiron 9100 laptop running XP, and ever since I installed itunes 5 my importing rate hasn't been faster than 1.8x and sometimes as slow as 0.8x. Before this new itunes, it would go at least 2.5 times as fast. Any ideas on what to do?

    mine does the same, although i dont know the actual speed of my cd drive it is frusterating, for me it will import fast for the fisrt cd i put in (usually around 7.0 to 6.0) but then if i want to iport snother cd (im trying to import my whole cd library, it goes very slow usually taing a minute and a hlaf per song. does anyone know how to fis this or have any tips?

  • I am experiencing very slow import and backing up issues.

    I am experiencing very slow import and backing up catalog on exiting Lightroom. This is a very recent issue. I use RAW files.

    The type of files you are importing will have an effect on the speed of the import process. Larger files, like raw sensor files, are normally much larger than JPG files.
    But if this is something new, the slowness, and you are using the same camera with the same size files as previously then it's not just the file size.
    What type of computer and what operating system are you using.

Maybe you are looking for

  • Can i upgrade premier pro CS3 to work on win 8.1

    Can I upgrade premier pro cs 3 to work on win 8,1.... Terry

  • JTable (single) graphic row background?

    I'd like each row in a JTable to display a single graphic image behind the whole row - not on a cell by cell basis, one long image behind all the cells in the row - and be able to dynamically choose the image for a given row based on data in one or m

  • My iPad 3 screen has gone completely black and does not respond

    MY iPad 3 screen has gone completely blank (blacked out) and does not respond to either of the power buttons. ANy suggestions?

  • Audio Drop Out/Popping sound Problem

    Hi, For the last few weeks (since i installed snow leopard i think), i have been getting a lot of audio drop outs, where all of a sudden the sound goes dead and i get a popping sound coming from my speakers. I am using a pre sonus fire studio project

  • Does OS X die of Loneliness?

    Hey all!  I wonder if I am having the only issue with this. I have a pimped-out Mac Pro (tower) with three 23" monitors. I have seen this behavior on my MacBook Pro 17, my MacBook Air as well so I don't think it's machine related. I usually run full