Thread.dump_to_file time
Gillespie, Oli
ogillesp at amazon.co.uk
Wed Sep 6 09:58:27 UTC 2023
I don't think the BufferedWriter inside PrintStream (is that the one you meant?) is doing much buffering here. strace says:
write(6, "ThreadDumpPerf.recurse(ThreadDumpPerf.java:20)", 46) = 46
write(6, "\"", 1) = 1
write(6, ",\n", 2) = 2
write(6, " \"", 15) = 15
write(6, "ThreadDumpPerf.recurse(ThreadDumpPerf.java:20)", 46) = 46
write(6, "\"", 1) = 1
write(6, ",\n", 2) = 2
write(6, " \"", 15) = 15
And definitely for me I get a big speedup and reduction in write calls from the 8192 byte buffer I showed.
Oli
Amazon Development Centre (London) Ltd. Registered in England and Wales with registration number 04543232 with its registered office at 1 Principal Place, Worship Street, London EC2A 2FA, United Kingdom.
More information about the loom-dev
mailing list