!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

910 Members
For people hacking on the Nix package manager itself191 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
22 May 2025
@perchun:matrix.orgPerchun Pak [don't ping; dm instead] changed their display name from Perchun Pak to Perchun Pak [don't ping; dm instead].13:50:46
@emilazy:matrix.orgemilythe LD_PRELOAD equivalent doesn't work super reliably on Darwin13:58:02
@emilazy:matrix.orgemilythough with Nix it might work fine since I guess it probably doesn't go through SIP stuff13:58:11
@emilazy:matrix.orgemily does this handle builtins.readFile? 13:58:17
@emilazy:matrix.orgemily -v -v doesn't actually seem to slow things down appreciably after re-testing so it seems likely adequate for my usecase 13:58:29
@emilazy:matrix.orgemily (using scopedImport to catch readFile takes 1.5× longer to eval :( ) 14:00:53
@emilazy:matrix.orgemily I guess I could PR tracing readFile in -v -v too 🙃 14:01:07
@puck:puck.moepuck
In reply to @emilazy:matrix.org
(using scopedImport to catch readFile takes 1.5× longer to eval :( )
(scopedImport doesn't cache imports the way import does; this is maybe a pretty big reason for the slowdown?)
14:26:32
@emilazy:matrix.orgemilyhmm I'd somewhat hope Nixpkgs doesn't import the same files over and over but maybe that's optimistic14:27:11
@emilazy:matrix.orgemily indeed it is, sort -u goes from 6186 to 4003 14:28:18
@emilazy:matrix.orgemilywhich is precisely a ratio that explains the slowdown14:28:28
@emilazy:matrix.orgemilyI wonder if there's anything disgusting I can do to re-add the caching14:28:43

Show newer messages


Back to Room ListRoom Version: 6