vincent163

Results 11 comments of vincent163

After resuing the parser, here are the new benchmark results: ``` goos: linux goarch: amd64 pkg: github.com/valyala/fastjson BenchmarkParse/small/stdjson-map-4 300000 4660 ns/op 40.77 MB/s 960 B/op 51 allocs/op BenchmarkParse/small/stdjson-struct-4 1000000 2362...

In fact, this will also improve performance by avoiding the copy. The benchmarks are here: https://gist.github.com/hewenyang/91618e54342f65809f4cb3c9c3aa1240 The observation is based on the `canada` benchmark which has the largest memory consumption....

> I'm aware of the possible memory leak, but couldn't find good solution yet. Straightforward zeroing of all the pointers on Reset slows down the Parser on on JSONs with...

> > but on my machine it seems that the bottleneck has already moved from Python to MySQL > > I am pretty sure that the real bottleneck is the...

> Here, we guarantee that no matter the environment or whatever `f` does, _if_ the stack frame of `test` ever gets popped or otherwise "deallocated", then the `println!` certainly happens....

计划是会把重点信息用粗体或鲜艳颜色突出出来,以及提供专门的输出评测信息的选项。 现在先把功能实现好。

现在 master 分支上的最新版本应该已经用 logger 输出了,详细度可以用 -v 选项调整,能试试吗 下载链接可以在 README.md 里找到,可以直接安装,不用编译。

更新了下:https://github.com/syzoj/syzoj-tools/commit/3ec59e47ece6943b47a5a00a4f8ae77116159a30 现在可以显示每个子任务和每个测试点的评测信息和错误原因了。 时间和内存还是不会显示,因为这些信息不是适用于所有题目类型(例如将来会开发的提交答案题型)。我会考虑一下怎么显示详细信息。

fakeroot v1.36 continues to be broken as well, I found this issue while running `makepkg -si` in a systemd-nspawn environment and fixed the problem by downgrading to v1.34