zenspider
2017-7-3 10:27:48

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


sergej
2017-7-3 15:18:37

@sergej has joined the channel


mflatt
2017-7-3 15:59:24

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


zenspider
2017-7-3 21:14:41

@mflatt are those milliseconds?


mflatt
2017-7-3 21:15:03

Yes, CPU milliseconds since startup


zenspider
2017-7-3 21:16:23

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


zenspider
2017-7-3 21:16:28
  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

lexi.lambda
2017-7-3 21:18:26

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


lexi.lambda
2017-7-3 21:18:42

try precompiling the lexer?


zenspider
2017-7-3 21:18:49

ah


zenspider
2017-7-3 21:20:06

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


zenspider
2017-7-3 21:20:32

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
2017-7-4 03:19:36

@porcow has joined the channel