mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-17 16:41:39 +00:00
added a general notes file...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
def671ffba
commit
0a76c30efc
10
NOTES
Normal file
10
NOTES
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
Avoiding Async functions
|
||||
------------------------
|
||||
|
||||
We are explicitly avoiding clean async functions if there is a possibility
|
||||
to return a value sync, especially in the genetal case. This is done to avoid
|
||||
jugling contexts between execution frames when this is not necessary.
|
||||
|
||||
"await" is quite convenient but "async", if overused, can destroy performance by
|
||||
playing ping-pong with lots of balls (promises) and frames.
|
||||
Loading…
x
Reference in New Issue
Block a user