yuetsh 72a3e1b9df perf(一言): JsonDataLoader 的缓存从 Redis 挪进程内
数据集是随数据目录发布的只读文件,运行期不会变,没有跨进程共享的必要。
原先塞 Redis 的写法每次命中都要把整份 json(最大的分类 pickle 后 323KB)
拉过网络再反序列化,比直接读本地盘还慢,而且和 session 挤在同一个 db=1。

改后首次读盘 4.3ms、之后每次 0.10us。签名、异常、返回结构都没动,缺文件
照旧抛 ValueError 被 HitokotoAPI 兜住;全部 12 个分类加载后每 worker 常驻
约 6.6MB,没做字段裁剪——那会改变旧接口的响应结构,而这里是回滚路径。

破例动了冻结的上一代:改动限于内部实现,外部可观测行为逐一对齐不变。
理由和边界写进了 OJ2/CLAUDE.md。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-16 10:19:50 -06:00
fix
2026-07-26 07:21:56 -06:00
2026-08-05 04:45:26 -06:00
2026-05-26 21:25:26 -06:00
2026-08-05 04:45:26 -06:00
2025-05-10 21:53:57 +08:00
fix
2026-08-06 08:25:48 -06:00
2026-08-05 04:45:26 -06:00
2026-08-05 04:45:26 -06:00
fix
2026-08-06 08:25:48 -06:00
2026-08-05 23:17:48 -06:00
fix
2026-08-06 08:36:01 -06:00
2026-08-05 04:45:26 -06:00
2017-01-24 13:36:28 +08:00
fix
2026-06-14 09:27:21 -06:00
2021-11-18 12:38:49 +08:00
2026-05-26 07:37:05 -06:00
2019-01-05 14:12:14 +08:00
2017-11-30 09:42:16 +08:00
2026-08-05 04:45:26 -06:00
2021-12-18 01:15:03 +08:00
2021-12-18 01:15:03 +08:00
2026-05-05 07:45:23 -06:00

OnlineJudge 2.0

Python Django Django Rest Framework Build Status

An onlinejudge system based on Python and Vue. Demo

中文文档

Overview

  • Based on Docker; One-click deployment
  • Separated backend and frontend; Modular programming; Micro service
  • ACM/OI rule support; realtime/non-realtime rank support
  • Amazing charting and visualization
  • Template-problem support
  • More reasonable permission control
  • Multi-language support: C, C++, Java, Python2, Python3
  • Markdown & MathJax support
  • Contest participants IP limit(CIDR)

Main modules are available below:

Installation

Follow me: https://github.com/QingdaoU/OnlineJudgeDeploy/tree/2.0

Documents

http://opensource.qduoj.com/

Screenshots

Frontend:

problem-list

problem-details

statistic-info

contest-list

You can control the menu and chart status in rankings.

acm-rankings

oi-rankings

status

status-details

user-home

Admin:

admin-users

judge-server

create-problem

create-contest

Browser Support

Modern browsers(chrome, firefox) and Internet Explorer 10+.

Thanks

  • I'd appreciate a star if you find this helpful.
  • Thanks to everyone that contributes to this project.
  • Special thanks to heb1c, who has given us a lot of suggestions.

License

MIT

Description
No description provided
Readme 12 MiB