zl程序教程

您现在的位置是:首页 >  前端

当前栏目

Why UI correction note always has a big static size

UI has size static why note Big always
2023-09-14 09:02:50 时间

Prerequisite knowledge

A simple tool to calculate the total size of a BSP application
Some more technical details about SAP note

My Analysis

Take this simple note for example:

clipboard1

Sara has only changed two lines in JavaScript code ( displayed below ):

clipboard2
clipboard3

However, when downloading this note, the size of compressed XML stream has unbelievable size of 3.2MB.

clipboard4

Among which the delta change occupies 1.7MB:

clipboard5

Why? Please have a look at decompressed XML content here.

clipboard6
clipboard7

However, apart from this code change made by Sara, there are also lots of unrelated code or comment which are also included into the delta change area:
i18n property data

clipboard8

unrelated Javascript code

clipboard9

Unrelated XML view source code
clipboard10

If you use Jerry’s tool to calculate the total static size of My Appointment application, you can get size: 1.5MB.

clipboard11

Please notice that this is only the static size. In the runtime, ABAP note tool needs more memory to unpack and apply the delta change to customer system as explained clearly in ABAP help.

clipboard12

It means the correction instruction for UI note DOES NOT contain the delta code change, but actually contains lots of other unused statement, which leads to the unnecessary big size of note.

要获取更多Jerry的原创文章,请关注公众号"汪子熙":