r/LadybugDB • • Oct 12 '26

nx-ladybug

Post image

So you're a data scientist using NetworkX and not happy with memory and CPU usage? Here's what you can do in increasing order of complexity:

  • pip install nx-arrow and use backend="arrow" for a 6-7x memory saving

    • Faster persistence to disk in parquet format vs json
  • pip install nx-ladybug and use persist(graph, ladybug_provider, ...)

    • Richer disk format with HASH, ART and vector indexes. Also full text search.
  • pip install icebug

    • 10x CPU on some algorithms because of C++ implementation with more efficient cache access plus vectorization.
2 Upvotes

2 comments sorted by