- Oct 2023
-
Tags
Annotators
URL
-
- Sep 2023
-
stackoverflow.com stackoverflow.com
-
- Aug 2023
-
profiler.firefox.com profiler.firefox.com
-
developer.confluent.io developer.confluent.io
-
Inside the Apache Kafka Broker
consumer properties => same as producer, time and batch size.
-
Kafka Broker
producer key properties => linger time -> linger.ms batch size -> batch.size
these determine the throughput and latency of kafkaproducers
-
-
twitter.com twitter.com
Tags
Annotators
URL
-
-
stackoverflow.com stackoverflow.com
- Jul 2023
-
blog.logrocket.com blog.logrocket.com
Tags
Annotators
URL
-
-
stackoverflow.com stackoverflow.com
-
developer.chrome.com developer.chrome.com
-
twitter.com twitter.com
Tags
Annotators
URL
-
- Jun 2023
-
slack.engineering slack.engineering
-
nolanlawson.com nolanlawson.com
-
Tags
Annotators
URL
-
- Apr 2023
-
Tags
Annotators
URL
-
- Feb 2023
-
-
Node.js
js import { renderToPipeableStream } from "react-dom/server.node"; import React from "react"; import http from "http"; const App = () => ( <html> <body> <h1>Hello World</h1> <p>This is an example.</p> </body> </html> ); var didError = false; http .createServer(function (req, res) { const stream = renderToPipeableStream(<App />, { onShellReady() { res.statusCode = didError ? 500 : 200; res.setHeader("Content-type", "text/html"); res.setHeader("Cache-Control", "no-transform"); stream.pipe(res); }, onShellError(error) { res.statusCode = 500; res.send( '<!doctype html><p>Loading...</p><script src="clientrender.js"></script>', ); }, onAllReady() { }, onError(err) { didError = true; console.error(err); }, }); }) .listen(3000);
Deno
```js import { renderToReadableStream } from "https://esm.run/react-dom/server"; import * as React from "https://esm.run/react";
const App = () => ( <html> <body>
Hello World
This is an example.
</body> </html> );const headers = { headers: { "Content-Type": "text/html", "Cache-Control": "no-transform", }, };
Deno.serve( async (req) => { return new Response(await renderToReadableStream(<App />), headers); }, { port: 3000 }, ); ```
Bun
```js import { renderToReadableStream } from "react-dom/server"; const headers = { headers: { "Content-Type": "text/html", }, };
const App = () => ( <html> <body>
Hello World
This is an example.
</body> </html> );Bun.serve({ port: 3000, async fetch(req) { return new Response(await renderToReadableStream(<App />), headers); }, }); ```
-
-
ogzhanolguncu.com ogzhanolguncu.com
Tags
Annotators
URL
-
-
gomakethings.com gomakethings.com
-
bugzilla.mozilla.org bugzilla.mozilla.org
Tags
Annotators
URL
-
-
www.measurethat.net www.measurethat.net
-
perf.builder.io perf.builder.ioPerflink1
-
- Nov 2022
-
www.youtube.com www.youtube.comYouTube1
-
- Jan 2022
-
anagora.org anagora.orgAgora1
-
today is a day for best effort and gentle improvement. writing a self-review for work always makes me want to unalive myself (even when I think I'm doing well???) so we're not being real ambitious outside of getting that done (well, besides all the normal work nonsense).
Same here :) I should really start writing perf before end of the month... I procrastinate a lot on it usually, even when I know it's silly.
-
- Apr 2021
-
python.plainenglish.io python.plainenglish.io
-
Holy xxx, it takes 3.37s to calculate merely 1,000,000 reciprocal numbers. The same logic in C takes just a blink: 9ms; C# takes 19ms; Nodejs takes 26ms; Java takes 5ms! and Python takes self-doubting 3.37 SECONDS.
But
numpy
takes just 2ms!
-
- Mar 2020
-
www.youtube.com www.youtube.com
-
- Sep 2018
-
-
var el; var i = 0; var fragment = document.createDocumentFragment(); while (i < 200) { el = document.createElement('li'); el.innerText = 'This is my list item number ' + i; fragment.appendChild(el); i++; } div.appendChild(fragment);
-
-
stackoverflow.com stackoverflow.com
-
The fastest (): while (node.lastChild) { node.removeChild(node.lastChild); } Alternatives (slower): while (node.firstChild) { node.removeChild(node.firstChild); } while (node.hasChildNodes()) { node.removeChild(node.lastChild); }
-
- Apr 2018
-
www.brendangregg.com www.brendangregg.com
Tags
Annotators
URL
-