简体   繁体   中英

Db4o is extremely slow in Eclipse debug mode

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 enough, 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM