Yonle on Nostr: Saw someone doing a benchmark, But then spotted that they call `console.log` inside ...
Saw someone doing a benchmark, But then spotted that they call `console.log` inside for loop block.
You may not call console.log at miliseconds. It's an sync function and therefore affects your code performance.
Published at
2024-06-02 03:20:39Event JSON
{
"id": "13dfbf10e73f21c1a4b25442fbf3a6f2a128777aa067ccfdcb7454c950e25cac",
"pubkey": "d418a84ff4d0cec1d490d4e5991887cf7251c55b48bd57607c31b4aed8edd460",
"created_at": 1717298439,
"kind": 1,
"tags": [
[
"proxy",
"https://fedi.lecturify.net/objects/1255c369-9351-4b52-8b0d-2ed2b7fd016c",
"activitypub"
]
],
"content": "Saw someone doing a benchmark, But then spotted that they call `console.log` inside for loop block.\n\nYou may not call console.log at miliseconds. It's an sync function and therefore affects your code performance.\n\nhttps://s3.lecturify.net/pleroma-cdn/7369c370-0a90-4899-bd3d-e6456c40f6f6/Screenshot_20240602-101615.png",
"sig": "e64d5e4bea90c6d23930a4865cbf8f0d1c1775299148d44f6a7a1ae94c3ab4bc5a47352c627ed476743300deac9014f6338f814b36e5803fc6ee8e39a33dcb32"
}