Closed Enter-tainer closed 6 years ago
It's known that sometimes -O2 really makes your code runs faster. Whlie I'm solving some poisonous problems, I find that my code would get TLE without O2 optimization. So is it able to specify the optimization level in config.json?
-O2
TLE
config.json
{ "Source" : "example.cpp", "Input" : "example#.in", "Output" : "example#.ans", "#" : [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "Time Limit" : 1000, "Memory Limit" : 128, "Optimization Level" : "O2" }
Chinese Translation 众所周知,氧气优化可以使你的程序跑的更快。在某些毒瘤题中,不开O2优化只会得到TLE,所以能否在config.json指定优化级别呢? 例如:
或者在程序启动的参数中指定,例如:
$ rlj [-s|--slient] [-j Source | --judge Source] [-c ConfigFile] [-O2]
Yes, I have considered this, and I add Compile parameter in config.json(but I have forgot it).
Compile parameter
Since -O2 is used so often, I will consider add it to the argument.
It's known that sometimes
-O2
really makes your code runs faster. Whlie I'm solving some poisonous problems, I find that my code would getTLE
without O2 optimization. So is it able to specify the optimization level inconfig.json
?Chinese Translation 众所周知,氧气优化可以使你的程序跑的更快。在某些毒瘤题中,不开O2优化只会得到
TLE
,所以能否在config.json
指定优化级别呢? 例如:或者在程序启动的参数中指定,例如: