Cache optimization method, device and apparatus and readable storage medium

The invention discloses a cache optimization method, device and apparatus and a readable storage medium. The method comprises the steps that: a class file is obtained and analyzed, and an analyzed class file is obtained; field information corresponding to a first member variable with thread reading...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: ZHAO XIANYUN
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a cache optimization method, device and apparatus and a readable storage medium. The method comprises the steps that: a class file is obtained and analyzed, and an analyzed class file is obtained; field information corresponding to a first member variable with thread reading and writing in the analyzed class file is read, and the number of to-be-added variables corresponding to the first member variable is calculated according to a preset cache line size and the field information; a plurality of second member variables without thread reading and writing are adaptively added in the field information, a target class file is obtained, and the number of the plurality of second member variables is the number of the to-be-added variables; and the target class file is initialized according to a preset loading process so as to load the first member variable and the plurality of second member variables into the same main memory cache line. With the method adopted, the technical problem of low d