ASM introduction

来自WHY42
Riguz留言 | 贡献2021年4月26日 (一) 02:31的版本 (建立內容為「= Event based API vs Tree API = * The event based API is faster and requires less memory than the object based API, since there is no need to create and store in…」的新頁面)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

Event based API vs Tree API

  • The event based API is faster and requires less memory than the object based API, since there is no need to create and store in memory a tree of objects representing the class (the same difference also exists between SAX and DOM).
  • However implementing class transformations can be more difficult with the event based API, since only one element of the class is available at any given time (the element that corresponds to the current event), while the whole class is available in memory with the object based API.

API structure