aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
AgeCommit message (Collapse)Author
2020-04-04add new bosses (wing 7 & strikes)Daniel
2020-04-04update dependenciesDaniel
2019-06-03[WIP] rewrite output logic as a pipelineDaniel
2019-05-31add option to filter based on bossDaniel
2019-05-24lazily parse log eventsDaniel
A lot of time is spent parsing the actual log events, especially when they are zipped, as they have to be decompressed first. This results in huge run-time hits, especially for files where we could determine very early if we actually need it. For example, player names are saved in the header, which can be examined very quickly. If we can determine at that stage that a log file will not appear in the result set, we don't need to parse all the log events. This patch relies on the partial parsing support of evtclib to do exactly that. It parses only the header with the player names, and only if there's a match, it will proceed to parse the events and do more filtering. In the future, we can extend this even more, for example we can also check the boss ID that way, since we can also access that in the header. On the downside, we now have the zip handling logic replicated in raidgrep, as we want a "common" interface to extract the actual data stream. But this logic could be pushed back to evtclib after polishing it a bit. There are some problems with Rust's borrow checking though, which is why it looks a bit convoluted.
2019-05-18add support for weekday filteringDaniel
2019-05-18add support for -l to only output the file nameDaniel
2019-05-18add support for -v to invert matchesDaniel
2019-02-16lint fixesDaniel
2019-02-16introduce CommaSeparatedListDaniel
This gives a common interface for command line flags which take multiple values, possibly with negation. This might come in useful if we add filtering by boss, e.g. "--boss !deimos" to ignore all deimos logs.
2019-02-16add support for .zevtc filesDaniel
2018-10-15clippyDaniel
2018-10-15add time based filteringDaniel
This accepts timestamps in the following formats: * Human-readable, like "15d", taken relative to the current time. * rfc3339-like "2018-03-14 13:13:00" More formats might be added in the future.
2018-10-15formattingDaniel
2018-10-15add "kill" as synonym for successDaniel
2018-10-15properly use encounter ID to get the nameDaniel
The previous method was nice because it "just worked" for most of the bosses, but with the introduction of W6 shenanigans (CA being a gadget, and Largos Twins being two bosses), the method was a bit unreliable. Now, the encounter ID that is saved by ArcDPS is used, and a predefined list of encounter names is consulted, which makes this work better for most bosses and allows us to change the name when appropriate (Nightmare Oratuss -> Siax)
2018-10-15use threadpool instead of par_iterDaniel
The way the parallel iterator splits the items, we get results from different bosses intermixed. The expected way to do it would be to search all logs related to a single boss first, before moving on, which is not what rayon did. Additionally, it forced us to collect the list of files into a vector first, before we could start the actual search. Using the scoped pool directly solves both of these problems, but the error handling suffered a bit, as we now use unwrap instead of returning a Result from the closure. But since we handle individual items, and might not want to stop just because a single item was faulty, this behaviour might be better.
2018-09-14add flag to enable debug outputDaniel
2018-09-14handle logs which do not have a boss agentDaniel
2018-09-10use unwrap! instead of if letDaniel
2018-09-10move filtering into own submoduleDaniel
2018-09-10add a flag to disable colored outputDaniel
2018-09-07add filtering by outcomeDaniel
2018-09-07more readability for SearchField checkingDaniel
2018-09-07more comments & formattingDaniel
2018-09-07better fight outcome detectionDaniel
2018-09-07add fight outcome to outputDaniel
2018-09-07parallelize log searchingDaniel
2018-09-07move output formatting to submoduleDaniel
2018-09-06initial commitDaniel