Invention Grant
- Patent Title: Optimized class loading
- Patent Title (中): 优化类加载
-
Application No.: US14526176Application Date: 2014-10-28
-
Publication No.: US09250891B1Publication Date: 2016-02-02
- Inventor: Kevin Michael Beranek , Keian Christopher , Vijay Ravindra Kulkarni , Samuel Leonard Moniz
- Applicant: Amazon Technologies, Inc.
- Applicant Address: US WA Seattle
- Assignee: Amazon Technologies, Inc.
- Current Assignee: Amazon Technologies, Inc.
- Current Assignee Address: US WA Seattle
- Agency: Lee & Hayes, PLLC
- Main IPC: G06F9/44
- IPC: G06F9/44 ; G06F9/455 ; G06F9/445

Abstract:
A classloader executing in an execution environment, such as a JAVA virtual machine or a software container, may be configured to generate class usage data describing the historical usage of classes by applications in the execution environment. Based upon the class usage data, one or more classes may be pre-loaded into a cache prior to receiving a request from an application to load the classes. If an application subsequently requests a class, the request may be satisfied using the class stored in the cache rather than by loading the class at the time the request is received. A probabilistic data structure, such as a Bloom filter, might also be utilized to determine whether a classloader can possibly load a requested class. Only if the classloader can possibly load the requested class will a search be made for the requested class in a classpath associated with the classloader.
Information query