SWT vs Swing


Eclipse is fast, NetBeans is slow.
SWT is fast, Swing is slow.

Myths?

The blog above said new NetBeans is getting faster, while new Eclipse is getting slower.

My own experience on NetBeans 3.x on Window, it is unacceptable slow. But for NetBeans 4.0 (also 4.1 Beta), it is a lot faster, responsive. It still takes few seconds to loaded up, but after that everything goes fine.

For Eclipse, Eclipse 2.0 on Windows and Linux is very fast, especially if you compare it with NetBeans in that time. For Eclipse 3.0, on Windows it is ok — not very fast but not too bad. On Linux, it is very slow and sometimes close itself without warning (this happended many times during my thesis time, hell).

Anyway, in general, I still recommend Eclipse for people who start develop Java. But as the project grows up, you may want to look for other IDE. JBuilder, IntelliJ, NetBeans, etc. Each IDE has its strength and weakness. Only few of them is suitable for your project (and when you change project, you may want to change IDE as well .. well, few people like to do that :P).

On another blog, OpenGL improvement in Java 2D makes Swing faster by 15%.


2 responses to “SWT vs Swing”

  1. เดิมผมใช้ netbean 3.5 บน windowซึ่งก็ ok ดี (แต่จะช้าลงไปเรื่อยๆตามเวลาที่ใช้ ต้องคอยลบ serialize instance ที่เป็นชยะออกเป็นระยะ) จากนั้นก็เปลี่ยนมาใช้ eclipse 3.0 ส่วน netbean 4.0 ผมลอง load มาใช้บนwindow แล้วพบว่า performance ข้ามากซึ่งอันนี้กลับกันกับคุณ bactสงสัยผมคงต้องทดลองบน linux บ้างแล้วส่วนบน linux ผมลองลง eclipse 3.0.1 แล้วทดลองใช้ง่ายๆ ก็ยังไม่พบปัญหาเรื่องช้าซึ่งอันนี้ค่อนข้างงงนิดหน่อย เพราะเคยอ่านเจอแต่ว่า eclipse บน linux นี้รับไมได้เลยตอนนี้ก็เลยงงๆอยู่บ้าง (หรือว่าเราใช้โปรแกรมช้าๆจนเป็นนิสัยไปแล้ว เลยไม่รู้สึกว่ามันช้า)อ้อ เครื่องผม pentium 2.4 GHz Ram 1 Gigปัจจุบันเวลาทำ project จะเลือกใช้ทีเดียว 2 ตัวคือทั้ง netbeans และ eclipseโดย netbeans ใช้ทำส่วน ui, webappส่วน eclipse ใช้ทำส่วน service, domain

  2. อ่า สงสัยเป็นเพราะ J2SE 5.0 ด้วยมั้ง ลืมนึกถึงไปเลยผมว่าตัว J2SE 5.0 นี่มันเร็วขึ้นป่ะ?พวก Swing อะไรงี้น่าจะดีขึ้นนะ

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.