Commit Graph

43 Commits

Author SHA1 Message Date
a0eab7c68f Merge pull request #7 from Lol3rrr/lazy-parser
Implement a Lazy-Parser
2024-10-17 22:47:06 +02:00
Lol3rrr
d4ae8f2d14 Fix formatting 2024-10-17 22:33:12 +02:00
Lol3rrr
bca4a60718 Fix test 2024-10-17 22:32:57 +02:00
Lol3rrr
ee98def536 Some more minor changes 2024-10-17 22:30:01 +02:00
Lol3rrr
ba48e89617 Remove fieldinfo from entity prop 2024-10-17 21:38:22 +02:00
Lol3rrr
14c422983e First iteration that should work correctly but seems to have some memory issues with entities 2024-10-17 21:15:03 +02:00
Lol3rrr
840ac071b1 Change benchmarks to iterate over the events 2024-10-17 18:03:21 +02:00
Lol3rrr
c48e8f3e42 Fix CI test action and remove incomplete test case 2024-10-17 17:55:48 +02:00
Lol3rrr
52d58efa23 Add basic benchmarks and CI 2024-10-17 17:43:11 +02:00
Lol3rrr
195d2fbc15 Add some more functionality to structured team 2024-10-15 21:27:57 +02:00
Lol3rrr
35302891e3 Add some extra utilities to handle entities 2024-10-15 18:42:17 +02:00
Lol3rrr
7dfa4fa57a Change url from git to https 2024-10-12 18:54:53 +02:00
Lol3rrr
4671d0cbde Update protobuf dependency 2024-10-04 12:30:10 +02:00
Lol3rrr
3068dfdc5b Switch to using Arc<str> for often cloned strings 2024-09-30 15:51:52 +02:00
Lol3rrr
681edb7b2f Tried to optimize game event parser 2024-09-30 14:08:05 +02:00
Lol3rrr
777248ab3c Some minor improvements and fixes 2024-09-30 13:46:12 +02:00
Lol3rrr
a872c5b3db More tests and some other stuff 2024-09-30 00:47:32 +02:00
Lol3rrr
fa57cacae0 Add more helper functions 2024-09-27 22:48:02 +02:00
Lol3rrr
3fabe9f493 Export entities submodule 2024-09-26 20:27:24 +02:00
Lol3rrr
8208494c25 Export Variant 2024-09-26 17:48:09 +02:00
Lol3rrr
7114124096 Add id for entity 2024-09-26 17:03:45 +02:00
Lol3rrr
a2b3ee1845 Add extra netmessagetype 2024-09-23 00:41:43 +02:00
Lol3rrr
89dc6b6565 Remove some dbg statements 2024-09-22 23:44:29 +02:00
Lol3rrr
ff8d05b79a Change the way entity data is stored 2024-09-22 23:19:18 +02:00
Lol3rrr
8b41ad5108 Fix (clippy) warnings 2024-09-22 22:28:16 +02:00
Lol3rrr
041aa14fa9 Minor updates to the README 2024-09-22 20:38:55 +02:00
Lol3rrr
67d33f64c0 Fix formatting and minor restructuring
Fixed formatting using cargo fmt.
Change some parser structure to reduce code deduplication
2024-09-22 20:31:38 +02:00
Lol3rrr
c1e85d77dc Further perf improv attempts
Reuse the buffer when decompressing the frames
2024-09-22 18:12:31 +02:00
Lol3rrr
bead8549d4 Performance Improvements
Work on improving the performance of the entity parsing stuff

Benchmarked using hyperfine with 2 warmup runs on my M1 Macbook

Entities - Previous: 14.845 s ±  0.095 s
No-Entities - Previous: 318.4 ms ±  18.1 ms

Entities - New: 1.117 s ±  0.021 s
No-Entities - New: 325.4 ms ±  16.7 ms
2024-09-22 17:32:13 +02:00
Lol3rrr
c1568c4c07 Add basic example for parsing the ancient demos with and without entities
This was mainly done to both start having some examples and try out the API.
They also serve as a starting point for benchmarking
2024-09-22 17:13:14 +02:00
Lol3rrr
6d89de0663 Update tests and some more 2024-09-21 21:53:41 +02:00
Lol3rrr
ba237795fd Now keep track of entity state as well 2024-09-21 15:42:32 +02:00
Lol3rrr
a6df2c2ad1 Update git lfs config 2024-09-20 23:50:13 +02:00
Lol3rrr
1bf68e78e4 Start with entity support 2024-09-20 23:46:38 +02:00
Lol3rrr
c5237af33b Make UserId's inner value public 2024-09-17 17:11:12 +02:00
Lol3rrr
4417b263a0 Export player's team and color as well 2024-09-15 16:24:42 +02:00
Lol3rrr
cfff05a82f Add some more types and improve typing for player events 2024-09-15 16:13:40 +02:00
Lol3rrr
c479fb5b69 Add ancient test file and add store file information at the end of the game 2024-09-15 15:27:47 +02:00
Lol3rrr
52baa392fa Expose GameEvent's fields 2024-09-15 13:43:30 +02:00
Lol3rrr
8100b7ef21 Export DemoEvent 2024-09-15 13:40:36 +02:00
Lol3rrr
30a675140b Add Protobuf submodule 2024-09-15 05:13:45 +02:00
Lol3rrr
3fd12ab337 Remove submodule 2024-09-15 05:13:25 +02:00
Lol3rrr
c7aa4dbe8c Initial version 2024-09-15 05:09:15 +02:00