Skip to content

Commit

Permalink
add TIP-222.
Browse files Browse the repository at this point in the history
  • Loading branch information
halibobo1205 committed Feb 6, 2023
1 parent 873244a commit 05197b6
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ TRON Improvement Proposals (TIPs) describe standards for the TRON platform, incl
| TIP&nbsp;204 | [Make MAX_FEE_LIMIT configurable as a chain property](https://github.com/tronprotocol/tips/blob/master/tip-204.md) | <yanghang8612@163.com> | Standards&nbsp;Track | VM | false | Final |
| TIP&nbsp;207 | [A proposal to improve network resources model ](https://github.com/tronprotocol/tips/blob/master/tip-207.md)| <liu.sean@tron.network> | Standards&nbsp;Track | Core | true | Draft |
| TIP&nbsp;209 | [Adapt to Solidity 0.6.0](https://github.com/tronprotocol/tips/blob/master/tip-209.md) | <neo.hong@tron.network> | Standards&nbsp;Track | VM | false | Final |
| TIP&nbsp;222 | [Improve transaction execution speed](https://github.com/tronprotocol/tips/blob/master/tip-222.md) | <kiven.liang@tron.network> | Standards&nbsp;Track | TRC | true | Final |
| TIP&nbsp;250 | [Include transaction results on the chain](https://github.com/tronprotocol/tips/blob/master/tip-250.md) | <andy.zhang@tron.network> | Standards&nbsp;Track | Core | true | Final |
| TIP&nbsp;268 | [SmartContract ABI optimization](https://github.com/tronprotocol/tips/blob/master/tip-268.md) | <yanghang8612@163.com> | Standards&nbsp;Track | VM | false | Final |
| TIP&nbsp;269 | [Optimize the performance of block processing](https://github.com/tronprotocol/tips/blob/master/tip-269.md) | <forfreeday@163.com> | Standards&nbsp;Track | Core | false | Final |
Expand Down Expand Up @@ -98,7 +99,7 @@ TRON Improvement Proposals (TIPs) describe standards for the TRON platform, incl
| TIP&nbsp;440 | [Transaction cache optimization](https://github.com/tronprotocol/tips/blob/master/tip-440.md) | <jell7@163.com> | Standards&nbsp;Track | Core | false | Final |
| TIP&nbsp;461 | [Optimize data consistency for system abnormals](https://github.com/tronprotocol/tips/blob/master/tip-461.md) | <ray.wu@tron.network> | Standards&nbsp;Track | Core | false | Final |
| TIP&nbsp;465 | [New reward calculation algorithm](https://github.com/tronprotocol/tips/blob/master/tip-465.md) | <bladehan@163.com> | Standards&nbsp;Track | Core | true | Final |
| TIP&nbsp;467 | [Stake 2.0 - A new TRON stake model](https://github.com/tronprotocol/tips/blob/master/tip-467.md) | <lxcmyf@gmail.com> | Standards&nbsp;Track | Core | false | Final |
| TIP&nbsp;467 | [Stake 2.0 - A new TRON stake model](https://github.com/tronprotocol/tips/blob/master/tip-467.md) | <lxcmyf@gmail.com> | Standards&nbsp;Track | Core | false | Final |
| TIP&nbsp;474 | [Optimize the return value of chainid opcode](https://github.com/tronprotocol/tips/blob/master/tip-474.md) | <yanghang8612@163.com> | Standards&nbsp;Track | VM | true | Final |
| TIP&nbsp;476 | [Delegate Data Structure Optimization](https://github.com/tronprotocol/tips/blob/master/tip-476.md) | <lxcmyf@gmail.com> | Standards&nbsp;Track | Core | false | Final |
| TIP&nbsp;491 | [Dynamic Energy Model](https://github.com/tronprotocol/tips/blob/master/tip-491.md) | <daniel.cao@tron.network> | Standards&nbsp;Track | VM | true | Final |
Expand Down
41 changes: 41 additions & 0 deletions tip-222.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
```
tip:222
title: Improve transaction execution speed
author: Kiven <kiven.liang@tron.network>
discussions to: https://github.com/tronprotocol/TIPs/issues/222
status: Final
type: Standards Track
category: TRC
created: 2021-01-06
```

## Simple Summary
This TIP provides Improve transaction execution speed for java-tron.

## Abstract
In the current Tron ecosystem, the destroyed TRX is transferred to the black hole account. When performing transfers, the black hole account needs to be serialized and deserialized. Since the black hole account contains less TRC10 tokens, serialization and deserialization will hardly affect the performance. However, with the development of time, there are currently a large number of TRC10 tokens in the black hole account, which has a great impact on performance during serialization and deserialization. From our current test, the performance is reduced by 50% to 100%.

## Motivation
Improve the performance of the TRON network and increase the QPS of transactions.

## Rationale
void burnTrx(long number): The method of destroying TRX, the value is accumulated and recorded in the DynamicPropertiesStore database

long getBurnTrxAmount(): Get the method of destroying the total TRX amount from the DynamicPropertiesStore

boolean supportOptimizeBlackHole(): Whether to open the proposal to remove the blackhole account

## Desired Features:
It can improve the QPS of the whole network transaction, and the performance can be improved by more than 50%.

## Technical Specifications:
Since the performance degradation is caused by the serialization and deserialization of black hole accounts, to improve performance, we can remove the black hole accounts and use DynamicPropertiesStore to record the number of destroyed TRX.
To make the database of the whole network consistent, we need to create a proposal to remove black hole accounts.

## Data Structures:
The data structure of the amount of TRX destroyed:
key: BURN_TRX; value: the number of TRX destroyed


## Copyright
All content herein is licensed under Apache 2.0.

0 comments on commit 05197b6

Please sign in to comment.