mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core&judge: also enable performance mode when bulk rejudge
This commit is contained in:
1 parent
d468b52a7a
commit
5a02010120
4 files changed
+11
-6
No files matched your search
@@ -155,7 +155,8 @@ export default class Hydro {
|
||||
getNext(t: JudgeTask) {
|
||||
return (data: Partial<JudgeResultBody>) => {
|
||||
log.debug('Next: %o', data);
|
||||
if (getConfig('performance') && data.case && !data.compilerText && !data.message) {
|
||||
const performanceMode = getConfig('performance') || t.meta.rejudge || t.meta.hackRejudge;
|
||||
if (performanceMode && data.case && !data.compilerText && !data.message) {
|
||||
t.callbackCache ||= [];
|
||||
t.callbackCache.push(data.case);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user