Cache user code snippets as well#545
Conversation
| .map!(a => tuple!("key", "time")(a[0], a[1].time)) | ||
| .array | ||
| .sort!((a, b) => a.time < b.time)[0 .. $ / 2]) | ||
| sourceHashToOutput_.remove(entry.key); |
There was a problem hiding this comment.
Depending on the implementation it might be faster to alloc a new dictionary and insert the new "half" though I doubt this (and it shouldn't matter anyway because this is very infrequently called).
|
Travis is currently broken due to https://www.traviscistatus.com/incidents/fyskznm7wg2c |
|
FYI: while it makes the tour faster, this is also intended to make dlang.org faster (-> dlang/dlang.org#1647). |
|
Now that we have Nginx in-between, we could also look into setting up a POST request cache with Nginx, e.g. https://medium.com/programming-articles/caching-post-responses-with-nginx-1c0c064bb6b0 |
|
As we now also allow DUB packages, this might even be more interesting ;-) |
|
We now use nginx to cache POST requests, so I'm closing this for now as redundant. |
This is important when we start receiving requests from dlang.org.
The second request pair is with caching. Of course, without starting docker the execution is faster which btw we might be interested in looking into Linux LXC containers (see also: https://unix.stackexchange.com/questions/254956/what-is-the-difference-between-docker-lxd-and-lxc).
There is an outstanding issue with CORS for dlang.org, hence two requests are sent, but this is part of another PR.