一种在应用程序的时间敏感型部分避免类加载延迟通用技术是,在应用程序启动或初始化期间预先加载类。
A generic technique to avoid class-loading delays during the time-sensitive parts of your application is to preload classes during application startup or initialization.
当改为XPath表达式之后页面加载延迟从难以觉察变成了几秒钟,即使是在负荷不高的本地服务器上。
Page loads went from essentially unnoticeable to several seconds when I switched over to this XPath expression, even on an unloaded local server.
这就是延迟加载,即尽可能长的延迟查询语句的执行。
This is lazy loading, or deferring the query as long as possible.
应用推荐