3 ms·
When running with Scientist enabled, doesn't that mean you will add both the runtime of the old/new implementation instead of just one implementation? I could
by jcchee88 11y ago
When running with Scientist enabled, doesn't that mean you will add both the runtime of the old/new implementation instead of just one implementation?
I could see this begin ok in most cases where speed is not a concern, but I wonder what we can do if we do care about speed?
- e28eta 11y agoWe could go look at the implementation/documentation of Scientist to confirm, but nothing says the comparison has to be happening on the response thread. You could fork a new thread to run the unused implementation without impacting response time, as long as you have the server capacity.
- doppel 11y agoThe article mentions running both code paths in parallel, so it becomes a matter of whether they have enough capacity for an extra cost for a (rather specific) path of their code. For this specifically I would imagine the cost is negligible in the big picture, considering regular activity far outnumbers pull/merge requests.