A lot of very slow = :-(LabelFields

Hi all

I have a screen with a VerticalFieldManager. I'm running in the speed problems in two common cases:

(1) creating the labelfields put in the optimization of resources. Here is some pseudo-code of what I do:

labels = new LabelField[200];
// this for loop takes a couple of seconds on a real device
for (int i=0; i < 100; i++) {
  title = new LabelField("Title", FOCUSABLE);
  title.setFont(bold font);
  subtitle = new LabelField("Subtitle", NON_FOCUSABLE);
  labels[i*2] = title;
  labels[i*2+1] = subtitle;
}

// this next part goes quick, no problem
vfm = new VerticalFieldManager();
vfm.addAll(labels);
myScreen.add(vfm);

A glance in the Profiler indicates that 90 + % of the time is spent in the UI during the loop code for, a lot of Field.applyTheme () of the time, a lot of time thus setText(). (I'm not on the event at this point thread.)

(2) eliminating a pair of labelfields (title and subtitle) optimization resources takes a few seconds. I use deleteRange (x, 2), and it's very slow, unfortunately.

I did research in the forums but have not been able to find ways to accelerate. Advice would be appreciated.

Thank you

Steve

Looking at your code, I would not suspect the time has been spent in the loop for.  Until these are added to the screen, my experience is that the creation of a load of fields does not take as long.  I thought that this was the process of these specify the screen once they have been added, which takes time.  If the loop was directly by adding them to the Manager and the Director was already on the screen, I can imagine that takes a long time.

To get the best performance of something like this, I recommend that you watch the ListField.  It's a little more complicated to start, but the performance gain you will get is significant.

Tags: BlackBerry Developers

Similar Questions

  • Firefox has become very slow. It takes a lot of time to load any website. I reinstalled FF but the fleeting problem.

    Firefox has become very slow. It takes a lot of time to load any website. I reinstalled FF but the rest of the problem.
    As a test, I downloaded Chrome and it is much faster.
    But I love FF and would be very happy if you can help me solve this problem.

    Hi Reos,

    When you reinstall Firefox it always uses your old profile with all the old things that you had. That said, you're lucky, there is a new feature that lets you "Reset" of Firefox. This will remove some of the pieces that might cause problems while it keeps your bookmarks and other important things safe.

    Check it out and let me know if it works: Refresh Firefox – reset the parameters and modules

  • Sometimes my wireless connection is very slow. Our people at work said there must be a lot of people in my neighborhood picky backup me & that I need to put a password on the router.

    sometimes working wireless on my laptop is very slow. Our people at work said there must be a lot of people in my neighborhood picky backup me & that I need to put a password on the router. How can I do this?

    original title: addition of router password?

    The manual is expected to be online. If you have pain to find - know everyone here the brand name and model - it is likely that someone here can help more.

    Basically connect to the interface web (usually via http://192.168.1.1 or http://192.168.0.1 web page with the username "admin") and change the password in the configuration / administrative to something (I suggest 15 + characters including letters - upper and lower case, numbers and symbols) and then find the wireless configuration and change the password for it to something other than the administrative password - but with the same suggestion.  If she uses WEP and you have all the relatively new devices (all purchased in the last 7 years) then I suggest change you in WPA.  If possible, replace WPA2.

    Probably there is also a place where you can see who is connected.

    What type of Internet connection you are paying for?  (Include numbers upstream and downstream, given to you by the service provider and the type...)

  • My laptop is freezing a lot, and when it works it is very slow.

    Original title: cell phone problems

    Hello world

    Well, my problem is that my laptop is freezing a lot, and when it works it is very slow.

    I tried my best to solve the problem, in fact it's the last problem. First it was overheating and blacken, so I dissamblied it and cleaned the fan who had a lot of dust in. That stop over heating and blacken. But there is a DLL error run and a big malware problem, which literally almost turned off the laptop. I fixed using management Acer recovery and restore of factory default.

    My laptop is Windows 7, I did a check thorough for malware using MalwareBytes and BullGuard and they both came back clear.

    I even took it to a computer repair center and they told me that they had it fixed, something they did for software updates. And of course when I got it back, it wasn't freezing, but then a few days later he began occasionally freeze, then gradually increases and now it of freezing of charges and also turn very slowly.

    The type of gel that is is, I can be offline or online and all of a sudden my screen locks and no keyboard commands don't work, the only thing I can do when this happens is to hold down the power button until it stops. Sometimes I load in SafeMode cos it seems Frost less then, but still it does not freeze too often.

    I really don't want to do about it, any advice would be much appreciated.

    I thought it might be a hard drive problem, maybe the Malware it damaged. But I wouldn't be replaced just to find that it freezes again after.

    Also I am upgrading to Windows could help, but I don't know if I can return to Windows 7 if I am not happy with it. I could create a restore point before moving on, but I'm not if this works with decommissioning?

    Run a repair of the win 7 dvd installation.

  • I just downloaded the new DC Acrobat, and I'm having a lot of problems with it. It's very, very slow. He has opening, saving, closing, do anything. Is there something that can be done to help him run a little more, well, normally?

    I just downloaded the new DC Acrobat, and I'm having a lot of problems with it. It's very, very slow. He has opening, saving, closing, do anything. Is there something that can be done to help him run a little more, well, normally?

    I fixed it! I used the string analyze function waiting in the Task Manager while opening a PDF file and have to wait 12 seconds... and it showed that the wait chain has been blocked by the Speech SDK. So I went to my Plugins of PDF from Adobe folder, which in my case is C:\Program Files (x 86) \Adobe\Acrobat DC\Acrobat\plug_ins and delete the plugin ReadOutLoud.api. (I had to close all instances of Acrobat DC first, and I had to also click the UAC Popup Windows application approval raised to remove the plugin) Now... instant Adobe Acrobat DC charge!

  • Internet very slow on Windows 7, I tried a lot of bugs with no luck

    I have Windows 7 Professional 64-bit. I used it without a problem for several months. But lately I had a very slow internet connection, no matter what program I use to. The same computer dual-boots with Windows XP: XP connects to Windows 7 to 0.3 Mbps and 8 Mbps.

    Security software: Avast and Comodo (use every two months with no problems).

    System Restore has been disabled by mistake, there is no restore points for trying.

    I tried EVERYTHING to fix this! I tried:
    -disabling auto tuning (this greatly improved navigation on the web, before pages would take ages to load, but the download speeds are still slow)
    -Disable IPv6
    -Disable Windows Firewall
    -disable the Windows Defender real-time protection
    Re-setup of ethernet card
    -Re-installation of network card
    -uninstall the Windows updates (those I was actually able to uninstall)
    -boot by using the system configuration to start without starting programs or non-Microsoft services
    -reset the TCP/IP stack
    -safe mode with networking
    -disabled the DHCP broadcast flag
    -change the heuristics of Windows scaling (since he says this overrided other parameters) and the provider settings control congestion

    Is there anything else I can do?

    For any question on Windows 7:

    http://social.answers.Microsoft.com/forums/en-us/category/Windows7

    Link above is Windows 7 Forum for questions on Windows 7.

    Windows 7 questions should be directed to the it.

    You are in the Vista Forums.

    See you soon.

    Mick Murphy - Microsoft partner

  • very slow Powerbook fine, iMacs

    My family uses 2 iMacs (1 2013, 1 earlier) and an Apple Powerbook at home. 2 iMac is incredibly slow, but the speed of the Powerbook is fine. IMacs both have a lot of unused storage and memory and I completely restored two iMacs and deleted unnecessary files, but they are very slow. I have everything back up on Dropbox and wonder now if the slowness is something to do with the combination of the signal at high speed and by using several connections of Dropbox in the House.  We have a Virgin Media Hub Super 2ac with advertised broadband router of up to 150 Mbps. I made a speed control using www.speedtest.com and the download speed is 105.81 Mbps and download speed is 9.70 Mbps. Any ideas anyone?

    You can view a report of etrecheck for later analysis

    www.etrecheck.com

    but I would like to disable and remove dropbox to test the system and if they improve the problem there.

  • MacBook Pro mid-2012 very slow

    Hello

    My MacBook Pro is very slow (it has gotten worse recently). Applications to take ages to load, Firefox is hogging resources and very slow, get the focus of the mouse has a huge lag and I was spinning.

    Currently I have 4 GB of RAM and is considering the upgrade to 16 GB. You run an EtreCheck report (below). Is there anything else I need to do? Why he began to be so slow after years of reasonable speed? Is there something I can adjust in Firefox?

    Opening documents and get stuff done becomes frustrating!

    Thank you for your support.

    EtreCheck version: 3.0.4 (308)

    Report generated 2016-09-21 12:50:28

    Download https://etrecheck.com EtreCheck

    Duration 09:05

    Performance: average

    Click the [Support] links to help with non-Apple products.

    Click the [details] links for more information on this line.

    Problem: The computer is too slow

    Description:

    Computer is slow, Internet is slow, the development of the mouse in any program is slow, a lot of spinning.

    Hardware information: ⓘ

    MacBook Pro (13-inch, mid-2012)

    [Technical details] - [User Guide] - [warranty & Service]

    MacBook Pro - model: MacBookPro9, 2

    1 2.5 GHz Intel Core i5 CPU: 2 strands

    4 GB of RAM expandable - [Instructions]

    BANK 0/DIMM0

    OK 2 GB DDR3 1600 MHz

    BANK 1/DIMM0

    OK 2 GB DDR3 1600 MHz

    Bluetooth: Good - transfer/Airdrop2 taken in charge

    Wireless: en1: 802.11 a/b/g/n

    Battery: Health = Normal - Cycle count = 378

    Video information: ⓘ

    Graphics Intel HD 4000

    Color LCD 1280 x 800

    System software: ⓘ

    OS X El Capitan 10.11.6 (15-1004) - time since started: about 7 days

    Disk information: ⓘ

    Disk0 APPLE drive HARD TOSHIBA MK5065GSXF: (500,11 GB) (rotation)

    EFI (disk0s1) < not mounted >: 210 MB

    Recovery HD (disk0s3) < not mounted > [recovery]: 650 MB

    Macintosh HD (disk 1) /: 498,88 (Go 298,35 free)

    Encrypted AES - XTS unlocked

    Storage of carrots: disk0s2 499.25 GB Online

    MATSHITADVD-R UJ - 8À8)

    USB information: ⓘ

    Apple Inc. FaceTime HD camera (built-in)

    Apple Inc. Apple keyboard / Trackpad

    Computer, Inc. Apple IR receiver.

    Apple Inc. BRCM20702 hub.

    Apple Inc. Bluetooth USB host controller.

    Information crush: ⓘ

    Apple Inc. Thunderbolt_bus.

    Goalkeeper: ⓘ

    Mac App Store and identified developers

    Startup items: ⓘ

    HWNetMgr: Path: / Library/StartupItems/HWNetMgr

    Startup items are obsolete in OS X Yosemite

    Launch system officers: ⓘ

    [loaded] 7 tasks Apple

    [loading] 149 tasks Apple

    [operation] 66 tasks Apple

    [killed] 16 tasks Apple

    16 killed processes lack of RAM

    Demons of launch system: ⓘ

    [loaded] 45 tasks Apple

    [loading] 143 tasks Apple

    [operation] 86 tasks Apple

    [killed] 16 tasks Apple

    16 killed processes lack of RAM

    Launch officers: ⓘ

    [performance]    HWPortCfg.plist (2015-09-04) [Support]

    [failure] com.adobe.ARMDCHelper.cc24aef4a1b90ed56a725c38014c95072f92651fb65e1bf9c8e43c37a 23d420d.plist (2016-07-11) [Support]

    [loading] com.google.keystone.agent.plist (2016-07-12) [Support]

    com.oracle.java.Java - Updater.plist [no charge] [Support]

    [operation] com.trusteer.rapport.rapportd.plist (2016-07-18) [Support]

    [loading] ouc.plist (2015-09-04) [Support]

    Launch of the demons: ⓘ

    [loading] com.adobe.ARMDC.Communicator.plist (2016-07-11) [Support]

    [loading] com.adobe.ARMDC.SMJobBlessHelper.plist (2016-07-11) [Support]

    [loading] com.adobe.fpsaud.plist (2016-08-30) [Support]

    [operation] com.backblaze.bzserv.plist (2016-07-11) [Support]

    [loading] com.google.keystone.daemon.plist (2016-09-02) [Support]

    [loading] com.microsoft.office.licensing.helper.plist (2012-04-02) [Support]

    com.oracle.java.Helper - Tool.plist [no charge] [Support]

    [loading] com.oracle.java.JavaUpdateHelper.plist (2014-06-09) [Support]

    [operation] com.trusteer.rooks.rooksd.plist (2016-07-18) [Support]

    Launch User Agents: ⓘ

    [failure] com.adobe.ARM. [...]. plist (2013-01-06) [Support]

    [operation] com.backblaze.bzbmenu.plist (2016-09-14) [Support]

    Internet Plug-ins: ⓘ

    FlashPlayer - 10.6: 23.0.0.162 - SDK 10.9 (2016-09-13) [Support]

    QuickTime Plugin: 7.7.3 (2016-07-09)

    AdobePDFViewerNPAPI: 15.017.20053 - SDK 10.11 (2016-08-14) [Support]

    AdobePDFViewer: 15.017.20053 - SDK 10.11 (2016-08-14) [Support]

    Flash Player: 23.0.0.162 - SDK 10.9 (2016-09-13) [Support]

    Default browser: 601 - SDK 10.11 (2016-07-09)

    o1dbrowserplugin: 5.41.3.0 - 10.8 SDK (2015-12-22) [Support]

    SharePointBrowserPlugin: 14.6.8 - SDK 10.6 (2016-09-14) [Support]

    googletalkbrowserplugin: 5.41.3.0 - 10.8 SDK (2015-12-11) [Support]

    3rd party preference panes: ⓘ

    Backblaze Backup (2016-07-11) [Support]

    Flash Player (2016-08-30) [Support]

    Trusteer Endpoint Protection (2016-07-18) [Support]

    Time Machine: ⓘ

    Skip system files: No.

    Mobile backups: WE

    Automatic backup: YES

    Volumes to back up:

    Macintosh HD: Disc size: 498,88 GB disc used: 200,52 GB

    Destinations:

    FREECOM HDD [Local]

    Total size: 249,72 GB

    Total number of backups: 36

    An older backup: 10 19, 2015, 23:58

    Last backup: 09 17, 2016, 22:59

    Backup disk size: too small

    Backup size GB 249,72 < (disc 200,52 GB X 3)

    Top of page process CPU: ⓘ

    29% firefox

    6% bzfilelist

    4% kernel_task

    3% coreaudiod

    3% WindowServer

    Top of the process of memory: ⓘ

    1.58 GB firefox

    652 MB kernel_task

    Mdworker (11) 123 MB

    Skype 82 MB

    QuickLookSatellite (3) 57 MB

    Information about virtual memory: ⓘ

    26 MB of free RAM

    3.97 GB used RAM (621 MB Cache)

    5.32 GB used Swap

    Due to the limitation of memory, memory virtual swap used 5.32 GB which is the main part of the slowness.

    It would be better to RAM as soon as possible.

  • Since the upgrade to El Capitan, my Mac is VERY slow.

    I just have to upgrade Yosemite El Capitan.  Since the upgrade, my Mac is VERY slow.  Spend a lot of time with the spinning beach ball, and slow to change application.

    Why?  What should do?

    Download and run EtreCheck, created by one of his own assistants here in CSA. It is a diagnostic tool that is very useful for us to find problems. It will also give us additional specifications on your Mac. After his execution after the logfile here. It will never contain any personal information.

  • In some mailboxes, very slow opening/removal of e-mails. In the other mailboxes, it works fine

    In my Inbox, very slow opening some (not all) emails. To remove problem emails takes 40-50 seconds. Also, I continue to score a lot of emails as "spam" and yet I get e-mail from senders of spam. In addition, these problems occur in some of the my folders, but not in all the? Had no problem with the previous version

    Start * Windows * in safe mode with active network.

    -Win8 http://windows.microsoft.com/en-US/windows-8/windows-startup-settings-including-safe-mode

    -Win7 http://windows.microsoft.com/en-US/windows7/Start-your-computer-in-safe-mode

    - Http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/boot_failsafe.mspx XP

    Always in Windows safe mode, start Thunderbird in safe mode

    - https://support.mozilla.org/en-US/kb/safe-mode

    The problem goes away?

  • Navigation between windows diff in firefox is very slow. Help, please.

    Firefox responds very slowly when I want to go to a different window that is already open, or if I press on + Options button to open the new window / tab, the response is very slow. Sometimes firefox responds at all, a message arrives that "Firefox is not responding", and after that the browser starts to reload all pages. It's pretty boring. Kindly help.
    I use WIN 7. the system has 3 GB of RAM, 2.2 GHz processor from intel, 32 bit OS.

    I deleted the sessionstore.js and .bak files and then reset the browser. This accelerated its response. thnx a lot to you two.

  • My Firefox cannot be used. It's very very slow edit pages, load pages and so on.

    I have search and applied several suggestions found in Internet, but so far, no one solves the problem. Firefox uses a lot of memory (600,000) and lots of CPU (100%) and work very slow to load new pages or update pages loading.
    I use APP "Memory Fox" but is the same.

    Hello VictorTrindade, please, try to reset firefox and see if that can solve the problem...

    Please also make sure that firefox is not blocked by your security/firewall somehow software.

  • Satellite C70-C-10 t - very slow, installation Win10 takes forever

    Hello

    I bought a new laptop from Toshiba today. And since puttng to use, it is very slow, I installed all the upgrades that did not help and I tried to install windows 10 but it worked for 2 hours now and it just went from 12% to 13%. Is this a known issue?

    Thanks in advance!

    When you buy a new notebook, the first thing we do is to make a backup of recovery. It is very important. You should have backup image recovery.
    If something goes wrong, you can use this media and reinstall the original recovery image.

    Each new laptop is slow at the beginning. What you need is the optimization of the OS. Remove all the unnecessary stuff from the system and check the windows startup.

    Many applications that you do not actually start with windows and start up takes a lot of time.

  • My printer prints very slow

    I have a Deskjet 6940. It had been printing very quickly, but is now barely mobile. I don't know if something has changed in my system or what. I even rebooted the SW. I have it configured for Fast project but it chugs along. Not at all as if it were before.

    I need help because I print every day a lot and need to print quickly.

    Thank you.

    The printer print a Windrow, then wait 10 to 15 seconds before the next swath?  If so, then one of the cartridges may have failed.  To troubleshoot this remove cartridges and try to print reserve mode.  If this prints to the near normal speeds then the cartridge you removed must be replaced.  If the printer is still very slow, and then replace the original cartridge and remove the cartridge on the other.  If it prints at a normal speed, then the cartridge that you deleted now is at fault.

    (Note: when printing text in view of reserve with a cartridge installed color printing will be a little slower than normal, but not very slow.)

  • Satellite P300 - very slow

    I recently put a Satellite P300 from a guy on ebay, it seems to be very slow. Can anyone suggest what I can do?

    Thanks for your time and your help. (apart from him giving back lol)

    Hello

    What to say? I think that it of not possible to say something because nobody knows what operating system you are using and what things software you already have installed maybe you can add this information

    Usually these problems are related to the OS if a lot of software is installed. Therefore, it would be useful to reinstall Windows

Maybe you are looking for

  • Not able to use WPA on a Satellite Pro 4600

    Hi guys,.I am not able to set up authentication WPA on my Satellite Pro 4600. This possibility is not in the network authentication drop-down list in the Properties dialog box (only open and shared).Is there a support for WPA in the bed of the laptop

  • Remove a member of a group/pool offline

    We have two units of PS400e in a pool, one of them has failed several months ago.  After working for several hours with tech support we finally gave up and just recovered data that we had of the Ribbon, then rebuilt the virtual machines, we lost.  'G

  • Palm Pre won't Charge / turn on

    Heres is my problem. My palm pre battery when it is plugged in to recharge (with charger official palm pre, power supply) needed to DUMP when it's plugged in. I thought it could have been just a connection sometimes losing since sometimes charged and

  • stream not in blackberry installation state

    HttpConnection httpConn = null;DataOutputStream dataOS = null;System.out.println ("strModuleName.Trim ()": "")+ strModuleName.trim ()); ChangeOfDividendUrl = ChangeOfDividendUrl + '; deviceside = false;httpConn = (HttpConnection), Connector.open (Cha

  • LOST THE SOUND OF THE VIDEO CLIP IN THE TIMELINE TO SEQUENCE ADOBE FIRST PRO CC

    Dear all,Please help me I recently lost sound on the timeline of the sequence in my Adobe Premiere Pro CC (2016), the clip is extracted from my Canon EOS 7 D MK2, with extension of MOV file, when I imported this clip for Pinnacle Studio 19, this prob