337 private links
Pour les fonts, je viens d'apprendre qu'il est possible de forcer l'utilisation de la police en local via le src: local("Verdana")".
Le site doit fonctionner sans JS; utiliser le CSS au lieu du JS quand c'est possible; diminuer le poids des images en servant des images plus petite en taille pour le mobile;
CRAM is offering near-native DRAM speeds.
Compared to Zswap or ZRAM.
From one minutes to 400ms
It shows how using RAM efficiently can increase performance.
- Stop allocating useless strings: to_string(), .clone(), HashMap borrow the string
- Optimize
hashmaplookups withhashmap.entry().or_insert(0) += 1instead of 3 lookups: in an if condition, insert operation and update. - Use as much core as possible: rewrite loops as iterators and then use rayon with
par_lines. remove()in array is a costly O(n) operation. If order is not important, preferswap_remove.
From 2-10 nanoseconds to 700 picoseconds to format a number.
And here is the problem: the encryption performs 2 passes over the data: first to encrypt, then to compute the authentication tag.
As we've seen before, it's bad because you will pay huge penalties when loading / unloading your data to / from memory to / from SIMD registers multiple times, even if you AES-CTR and GHash implementation are optimized to the mooooon.
It reduces the noise of the input and the AI consumes 90% less tokens. These tokens are less noise for the AI to compute.
Source: https://github.com/chopratejas/headroom
The documentation: https://headroom-docs.vercel.app/docs
As always serving raw HTML and CSS for the win. In comparison to NextJS, Astro delivered the same features for 5% of the original bundle size.
A Finite State Transducer seems to be the best algorithm instead of a full index search.
The data don't need to be stored in a database indeed. They only need to be searched as text.
The bun single binary performs better!
64-bits pointer address can be compressed to 32 bits