c*****a 发帖数: 55 | 1 Hi, I have a big enum class(classA) which has more than 2000 constants. And
this been used in a big switch statement.
My problem is running the same code in netbeans is much faster than eclipse.
I try to understand why.
Any thoughts? Thanks a lot. | M***r 发帖数: 79 | 2 Shall you worry about the code readability of your big switch first? | c*****a 发帖数: 55 | 3 I am not sure. I used to use int for the switch, and than, I convert all
those int into enum, then the big slow down in eclipse start to happen.
I don't understand why eclipse and netbeans have this big difference. for a
very simple test, netbeans took like a second, and eclipse took more than 30
seconds. | c*****e 发帖数: 3226 | 4 哈哈。。
【在 M***r 的大作中提到】 : Shall you worry about the code readability of your big switch first?
|
|