mount an atproto PDS repository as a FUSE filesystem

Speed up by reusing tokio instance #6

closed
opened by danabra.mov targeting main

Claude claims this is faster

  Changes:
  1. Added rt: tokio::runtime::Runtime field to PdsFs<R> struct
  2. Initialize runtime once in new() method
  3. Replaced two instances of Runtime::new().unwrap():
    - In attr() method (line 169-171) → now uses self.rt
    - In read() method (line 388-391) → now uses self.rt

  Measured performance improvement:
  - Before: 10.981 seconds (cold cache)
  - After: 1.769 seconds (cold cache)
  - Speedup: 6.2x faster

  The optimization eliminates the massive overhead of creating ~22,000 Tokio runtimes (one per file) during directory
   listing operations. Builds cleanly with no warnings.
0
by danabra.mov 2 comments

i don't know why it keeps saying merge conflicts :( i just do git show on commit and copy paste the diff part

similar issue with this patch i believe! something like git diff <sha> | pbcopy on macos typically does the trick.

closed without merging
sign up or login to add to the discussion
Labels

None yet.

Participants 2
AT URI
at://did:plc:fpruhuo22xkm5o7ttr2ktxdo/sh.tangled.repo.pull/3m33t4plryu22