
is it possible to profile / report where startup time is being spent? cost of requires and #langs I guess?

@sergej has joined the channel

@zenspider You could try racket -l mzlib/traceld -t <your-module>

@mflatt are those milliseconds?

Yes, CPU milliseconds since startup

huh… it hits my lexer and loads rackunit, even tho the require is in a submodule that isn’t being activated

loading /Users/ryan/Work/git/zenspider/schemers/br/basic/lexer.rkt at 1063
loading /MyApplications/dev/lisp/Racket/share/pkgs/rackunit-lib/rackunit/compiled/main_rkt.zo at 1243

it looks like it isn’t loading lexer.rkt
from a .zo
, so it would need to load rackunit to compile lexer.rkt

try precompiling the lexer?

ah

compiling the lexer and expander count for .6-.7s… but it’s still a lot more than it feels like it should be

nice to see just how much is loading… I’ll write a post-processor for that tracer output to report the expensive bits nicely

@porcow has joined the channel