Hi JDEE Users, Here are two ways you can significantly speed up field and method completion in JDEE 2.3.2:
- Byte-compile the eieio and JDEE packages. JDEE 2.3.2 is based on a new, object-oriented version of beanshell.el, the Emacs interface to the BeanShell. The new version is based on eieio. Completion uses the BeanShell heavily to determine the class of the field or method at point. Thus compiling eieio and beanshell.el improves completion's performance, dramatically in my tests. - Import by class, not by package in your Java files. Every package import, e.g., java.util.*, requires invoking the BeanShell to determine the fully qualified name of the class at point (see jde-parse-get-qualified-name). Beanshell invocations are by far the most time-consuming operations required for completion. Thus minimizing their use speeds up completion. - Paul