both assertion and logger are good. I just read over these two. I prefer the #define, because I am doing the performance study. I don't even like the debug code to have impact over the processing time.
【在 s*********b 的大作中提到】 : There is something in this world called logger
P*f
8 楼
But if you are really concerned with performance, why Java?
【在 x*****o 的大作中提到】 : both assertion and logger are good. : I just read over these two. : I prefer the #define, because I am doing the performance : study. I don't even like the debug code to have impact over : the processing time.
x*o
9 楼
I also think so now. previously I think java huge library is good, easy for implementation. but now for performance, I already throw out those libraries... only use raw array and math/io package... han~.
【在 P*****f 的大作中提到】 : But if you are really concerned with performance, why Java?