Dev Miscellaneous
356 subscribers
883 photos
6 videos
5 files
912 links
A channel where you can find developer tips, tools, APIs, resources, memes and interesting contents.

Join our comments chat for more.

Comments chat (friendly :D)
https://t.me/+r_fUfa1bx1g0MGRk
Download Telegram
Dismissing Python Garbage Collection at Instagram

By dismissing the Python garbage collection (GC) mechanism, which reclaims memory by collecting and freeing unused data, Instagram can run…

https://instagram-engineering.com/dismissing-python-garbage-collection-at-instagram-4dca40b29172

@DevMisc
#python #gc #performance
Fast Inverse Square Root — A Quake III Algorithm

In this video we will take an in depth look at the fast inverse square root and see where the mysterious number 0x5f3759df comes from.

https://www.youtube.com/watch?v=p8u_k2LIZyo

@DevMisc
#performance #c
How to write slow Rust code

How I tried to port Lisp code to Rust and managed to get a much slower program... and how to fix that!

https://renato.athaydes.com/posts/how-to-write-slow-rust-code.html

@DevMisc
#rust #performance
Working Around a Case Where the Postgres Planner Is "Not Very Smart"

We discovered a Postgres quirk that prevented an existing index from supporting an index-only scan. Here's how we worked around the quirk to achieve a 2x performance win.

https://heap.io/blog/when-the-postgres-planner-is-not-very-smart

@DevMisc
#postgres #performance
A fast alternative to the modulo reduction

Suppose you want to pick an integer at random in a set of N elements. Your computer has functions to generate random 32-bit integers, how do you transform such numbers into indexes no larger than N?

https://lemire.me/blog/2016/06/27/a-fast-alternative-to-the-modulo-reduction/

@DevMisc
#tips #performance
How to Improve MongoDB Performance

Indexes help to handle slow queries. If there weren’t indexes, the database would scan all documents in a collection...

https://enlear.academy/how-to-improve-mongodb-performance

@DevMisc
#indexes #performance #mongodb
Stop using loops. Do this instead.

Loops are commonly used in code by programmers. However, many fail to realize how taxing they are on a program’s performance speed...

https://python.plainenglish.io/stop-using-loops-do-this-instead

@DevMisc
#python #loop #performance
Why IndexedDB is slow and what to use instead

https://rxdb.info/slow-indexeddb.html

@DevMisc
#performance #web
C Runtime Overhead

What do you do when libc is your bottleneck?

http://ryanhileman.info/posts/lib43

@DevMisc
#c #libc #performance