40s to compile seems rather excessive, considering macros like match that also 
do a lot of work are instant, almost regardless of their size (I once managed 
to generate a 2000 line (match ...) and hardly noticed). Is there anything in 
define-schema that makes it non-linear? Do you process tables or columns over 
and over? How much code does it expand to?

I might have some computer time tonight, and will be able to test it out and 
explore the library you are using.

-- 
  Linus Björnstam

On Mon, 20 Jul 2020, at 02:08, Ryan Kramer wrote:
> Using DrRacket, the following file takes 18 seconds to compile without 
> debugging, or about 40 seconds to compile with debugging: 
> https://raw.githubusercontent.com/default-kramer/plisqin-tutorials/e844825b48137553246c64e73516d880b9068825/define-schema-answer-key/aw-schema.rkt
> 
> When I say "compile", I mean that I click "Run" in DrRacket and wait 
> for it to give me REPL access. But that file just defines and provides 
> a slew of functions, it doesn't really do anything at runtime.
> 
> (Using the command-line `racket that-file.rkt` takes only 7 seconds, 
> which is OK. But many people, myself included, primarily use DrRacket.)
> 
> Admittedly, this is 612 dense lines of code. So it might just be a case 
> of "yeah, that's about how long it takes." But it's also possible (or 
> probable?) that I have some inefficient macros somewhere. Are there any 
> tools/techniques I can use to help me reduce the compilation time?
> 
>  -- 
>  You received this message because you are subscribed to the Google 
> Groups "Racket Users" group.
>  To unsubscribe from this group and stop receiving emails from it, send 
> an email to [email protected].
>  To view this discussion on the web visit 
> https://groups.google.com/d/msgid/racket-users/40e40eff-a0be-4850-9360-c9648cb5b8d9o%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/racket-users/40e40eff-a0be-4850-9360-c9648cb5b8d9o%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/12a6b283-5e70-4bbf-b377-24905c38ee29%40www.fastmail.com.

Reply via email to