[EVENTVWR]
authorKamil Hornicek <kamil.hornicek@reactos.org>
Tue, 7 Feb 2017 22:33:02 +0000 (22:33 +0000)
committerKamil Hornicek <kamil.hornicek@reactos.org>
Tue, 7 Feb 2017 22:33:02 +0000 (22:33 +0000)
commitca7ae9bbefbed255333057b1ff08e2d068f8c29b
tree7d58f964d993747b94f2014be95e297383dce780
parentab5f5755fc566aaf6eed835b87f31b619ecd6d76
[EVENTVWR]
- Attempt to speed up loading and displaying logs in EnumEventsThread:
- Rewriting the code fix an infinite loop that could happen under low memory conditions (this potentially speeds things up quite a lot).
- Remove ListView subclassing - sorry Hermès but not only it keeps constantly redrawing under Windows but also adds too much overhead.
- Don't read the event log records one by one but in chunks of roughly 0x7ffff bytes (maximum size allowed).
- Use poor man's "caching" of the event user name (optimizing/caching rest of the stuff in the loop didn't yield any significant speed up).

Result: Loading ~40000 records under Win7 went from 4.5 minutes to 65 seconds.

svn path=/trunk/; revision=73749
reactos/base/applications/mscutils/eventvwr/eventvwr.c