Structural member memory arrangement optimization method, terminal and medium
The invention provides a structure member memory arrangement optimization method, a terminal and a medium, and the method comprises the steps: recognizing a target structure type in an application program through a mode recognition method, so as to obtain a space opening instruction associated with...
Gespeichert in:
Hauptverfasser: | , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention provides a structure member memory arrangement optimization method, a terminal and a medium, and the method comprises the steps: recognizing a target structure type in an application program through a mode recognition method, so as to obtain a space opening instruction associated with the target structure type and corresponding heap space information; splitting the target structure body type into each sub-structure body corresponding to each member type, and declaring a corresponding sub global variable; and converting the index mode of the target structure body type into the index mode corresponding to the sub-structure body type, so that the operation instruction associated with the target structure body type in the application program points to the corresponding sub-structure body type. Therefore, the cache hit rate in the program execution process can be effectively improved.
本发明提供一种结构体成员内存排布的优化方法、终端及介质,利用模式识别方法,于应用程序中识别出目标结构体类型,以获取与所述目标结构体类型关联的开辟空间类指令和对应的堆空间信息;将所述目标结构体类型拆分为与各成员类型对应的各子结构体,并声 |
---|