Committee Proposal 81

TRON Core Devs
TRON
Published in
2 min readDec 30, 2022

Committee proposal 81 is a voting request for modifying the №69 network parameter, activating the optimization of storage structure of the resource delegate relationship. The №81 committee proposal is already in effect, please refer to here, this post is dedicated to provide more details and make it clearer.

Why optimize the storage structure of the resource delegate relationship?

When an account delegates resources to others, it is necessary to maintain the delegate relationship between each other and store it persistently. But for the storage structure of resource delegate relationship before the optimization, the read performance of the delegate relationship will drop sharply when the delegate relationship of a certain account increases, and even seriously affect the execution efficiency of the delegate related transactions. Please refer to Figure 1. So it is necessary to optimize the delegate relationship storage structure.

The optimization is to change the storage structure of the delegate relationship from a list to a key-value pair, that will help to complete the querying and modification of its data in a constant time, which greatly speeds up the execution speed of the delegation related transactions.

Below is a comparison of the average execution time of the delegate related transaction before and after the optimization.

Figure 1 — Comparison of the delegate related transaction average execution time before and after optimization

We can see that as the number of delegate relationships increases, the execution speed of the delegate related transactions is much faster after the optimization and the average execution time is maintained at around 6ms. The performance improvement rate reaches 91.89% when there are 20,000 delegate relationships.

So activating the optimization of storage structure of the resource delegate relationship will greatly speed up the execution speed of the delegation related transactions and improve the TRON network’s throughput.

How to adapt to this optimization?

Developers do not need to do anything for this optimization.

Summary

Optimizing the storage structure of the resource delegate relationship will help to realize completing the querying and modification of delegating relationship data in a constant time, thereby increasing the execution speed of the delegate related transactions and improving the TRON network’s throughput.

--

--