开发者

Db4o is extremely slow in Eclipse debug mode

开发者 https://www.devze.com 2023-03-04 16:44 出处:网络
I\'m working with a db4o database and have a database of approximately 1000-5000 objects on Mac OS X, developing in Eclipse Helios.

I'm working with a db4o database and have a database of approximately 1000-5000 objects on Mac OS X, developing in Eclipse Helios.

Currently, I'm retrieving all objects of a certain class:

ObjectSet<Task> query = m_container.query(Task.class);

But then, when I need to put it into a real ArrayList, it is awfully slow. Funnily en开发者_高级运维ough, that only is in Debug mode in Eclipse - it never finished (in approx. 5 min running at 100% CPU), hanging at the toArray method in the Constructor of ArrayList.

When I run it in normal mode, the same operation completes in a matter of seconds.

Has anyone of you experienced this or knows how to fix it?

Thanks!


I suggest taking a look at the breakpoints. These are the things that make the JVM work slower in the debug mode.

0

精彩评论

暂无评论...
验证码 换一张
取 消