天天看点

不同类型的ABAP内表读写性能比较

I construct three internal tables with different table types:

不同类型的ABAP内表读写性能比较

The complete test source code could be found in the end part of the blog.

insert operation comparison

The hashed table is least efficient since additional overhead is paid to maintain the internal administrative information for hash logic.

The standard table is fastest due to the fact that there is no overhead.

不同类型的ABAP内表读写性能比较

read operation comparison

The standard table read is slowest due to o(n) complexity.

不同类型的ABAP内表读写性能比较

If we exclude the standard table read and compare the left three, it is clear the hashed table read is most efficient.

不同类型的ABAP内表读写性能比较

The complete test source code:

不同类型的ABAP内表读写性能比较
不同类型的ABAP内表读写性能比较
不同类型的ABAP内表读写性能比较

继续阅读