Discussion:
[racket] Submodule tests vs separate-file tests
Alexis King
2015-03-17 08:38:25 UTC
Permalink
Is there any preferred convention for location of tests in libraries? Using a test submodule is convenient, but does keeping all the tests in separate files reduce loading costs? Does using submodules bloat the .zo size, or are they compiled separately a la Java inner classes?

Alexis
Matthew Flatt
2015-03-17 11:58:43 UTC
Permalink
Using a submodule does increase the ".zo" file size, but the submodule
portion of the ".zo" file is not loaded when the main module is loaded,
so it's as good as a separate bytecode file.
Post by Alexis King
Is there any preferred convention for location of tests in libraries? Using a
test submodule is convenient, but does keeping all the tests in separate files
reduce loading costs? Does using submodules bloat the .zo size, or are they
compiled separately a la Java inner classes?
Alexis____________________
http://lists.racket-lang.org/users
____________________
Racket Users list:
http://lists.racket-lang.org/users
Alexis King
2015-03-17 17:10:26 UTC
Permalink
Neat, thanks.
Post by Matthew Flatt
Using a submodule does increase the ".zo" file size, but the submodule
portion of the ".zo" file is not loaded when the main module is loaded,
so it's as good as a separate bytecode file.
Post by Alexis King
Is there any preferred convention for location of tests in libraries? Using a
test submodule is convenient, but does keeping all the tests in separate files
reduce loading costs? Does using submodules bloat the .zo size, or are they
compiled separately a la Java inner classes?
Alexis____________________
http://lists.racket-lang.org/users
____________________
Racket Users list:
http://lists.racket-lang.org/users

Loading...