Git Product home page Git Product logo

Comments (10)

dankurka avatar dankurka commented on July 20, 2024

Reported by gwt.team.bruce on 2006-09-21 20:51:08

  • Status changed: FixedNotReleased

from gwt.

dankurka avatar dankurka commented on July 20, 2024
Optimized ListBox by
   a)  using appendChild rather than insertChild wherever possible.
   b)  updating code to set value on the original node rather than calling setValue,
removing a element retrieval step.

Reported by gwt.team.ecc on 2006-09-22 11:21:48

  • Labels added: Milestone-1_2_RC

from gwt.

dankurka avatar dankurka commented on July 20, 2024
Additional discussion:

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/9b0763ea6c433cee/
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/d0224fd778400398/

Reported by gwt.team.vli on 2006-09-26 18:32:06

from gwt.

dankurka avatar dankurka commented on July 20, 2024

Reported by gwt.team.jgw on 2006-10-31 16:58:35

  • Status changed: Fixed

from gwt.

dankurka avatar dankurka commented on July 20, 2024

Reported by [email protected] on 2008-05-02 02:32:22

from gwt.

dankurka avatar dankurka commented on July 20, 2024
I use GWT 1.6.1 on Windows.
The following code

        List data = ... // has 3472 elements (list of city names)
        ListBox lb = new ListBox();
        for (int i = 0; i < data.size(); i++) {
            lb.addItem(data.get(i).toString());
        }
        add(lb);

takes about 16 secs on a developer machine in hosted mode.
The performance in web mode is acceptable in FF3, but very slow on IE7.

Reported by [email protected] on 2009-03-20 09:43:23

from gwt.

dankurka avatar dankurka commented on July 20, 2024
I meet the same problem, the performance in IE7 is not acceptable, followed is a 
test code clip, when the pages is 20000,  it will cost ~250 seconds. 
This problem doesn’t exist in FF3.5

                ListBox pageSelectorTemp = new ListBox();
                for (int i = 0; i < pages; i++)
                {
                    pageSelectorTemp.addItem("0");
                }

Reported by chenchao8039 on 2009-12-21 03:37:11

from gwt.

dankurka avatar dankurka commented on July 20, 2024
I agree, IE7's performance is not acceptable, but GWT cannot do anything to help. Try

the attached file, it's pure JS, simpler than what GWT generates, but still it needs

~250 seconds to add 20000 items. The issue is IE7, not GWT. (actually, the issue is
IE, 
whichever version: IE8 scores at 130 seconds on my machine, while Chrome 4 alerts after

175 *milli* seconds only)

Reported by t.broyer on 2009-12-21 10:15:54


- _Attachment: [test2.html](https://storage.googleapis.com/google-code-attachments/google-web-toolkit/issue-49/comment-8/test2.html)_

from gwt.

dankurka avatar dankurka commented on July 20, 2024
Please take a look at my workaround, which may be used in specific cases:
http://jvminside.blogspot.com/2009/12/adding-many-items-to-gwt-listbox-faster.html

Reported by [email protected] on 2009-12-22 23:48:12

from gwt.

dankurka avatar dankurka commented on July 20, 2024

Reported by [email protected] on 2011-02-09 00:11:00

  • Labels added: Milestone-1_2-RC
  • Labels removed: Milestone-1_2_RC

from gwt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.