Skip to content

Commit

Permalink
docs: add diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbate committed Dec 31, 2024
1 parent 43fbfc7 commit e2682a0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion apps/docs/src/guide/optimizing-transactions/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,15 @@ When submitting transactions using the SDK, the following actions are being perf

Depending on how you are performing the transaction, all of the above may have been abstracted away underneath a single function call that is performing multiple calls to the network to retrieve necessary information. Which gives the appearance of slowness for users interacting with your application.

This can be mitigated by optimistically building the transaction before your user submits the transaction. Pre-preparation of the transaction can speed increases for your users of **~2x**.
This process can be illustrated by the following diagram:

![Pre-optimization Tx Process](../../public/tx-optimization-before.png)

This can be mitigated by optimistically building the transaction before your user submits the transaction. Pre-preparation of the transaction can improve the perceived speed of transactions by **~2x**.

The process now looks like the following:

![Post-optimization Tx Process](../../public/tx-optimization-after.png)

Check out the following guides on implementing optimistic transaction building:

Expand Down
Binary file added apps/docs/src/public/tx-optimization-after.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/docs/src/public/tx-optimization-before.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e2682a0

Please sign in to comment.