| 22 May 2025 |
| Perchun Pak [don't ping; dm instead] changed their display name from Perchun Pak to Perchun Pak [don't ping; dm instead]. | 13:50:46 |
emily | the LD_PRELOAD equivalent doesn't work super reliably on Darwin | 13:58:02 |
emily | though with Nix it might work fine since I guess it probably doesn't go through SIP stuff | 13:58:11 |
emily | does this handle builtins.readFile? | 13:58:17 |
emily | -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 |
emily | (using scopedImport to catch readFile takes 1.5× longer to eval :( ) | 14:00:53 |
emily | I guess I could PR tracing readFile in -v -v too 🙃 | 14:01:07 |
puck | 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 |
emily | hmm I'd somewhat hope Nixpkgs doesn't import the same files over and over but maybe that's optimistic | 14:27:11 |
emily | indeed it is, sort -u goes from 6186 to 4003 | 14:28:18 |
emily | which is precisely a ratio that explains the slowdown | 14:28:28 |
emily | I wonder if there's anything disgusting I can do to re-add the caching | 14:28:43 |