3 ms·
I read that during the first run, it will be slower because of the crystal code being compiled. Is the compiled code stored somewhere? I am asking this because
by Alifatisk 3y ago
I read that during the first run, it will be slower because of the crystal code being compiled. Is the compiled code stored somewhere?
I am asking this because in that case, can’t I run it myself and share the code with the precompiled parts so others don’t have to experience the slow start?
- deleted 3y ago[deleted]
- Ocha 3y agoTowards the end it gives an example on how to precompile in advance
- Lio 3y agoYes that appears to be the case. If you run the single file example in the README it will add a directory called "crystalruby" with generated source code in it. So it looks like you could easily check that in with your gem. I don't actually see any object code in the directory but this is a new project so they may not cache that yet but I don't see why they couldn't in future. e.g. as a build step when installing a gem. This seems to be a fantastic bit of work so far with a lot of potential for the future.