Closed CyberiaResurrection closed 8 months ago
Here's to less crap!
On Wed, Apr 3, 2024 at 1:36 AM Alex Goodwin @.***> wrote:
I got tired of 3 megabytes+ of crap filling up the logs of full-orchestra charted space runs, which I generally have to leave running overnight.
A shufti showed ~60% of those were invalid/missing population trade code complaints (including the infamous 'Ba Lo Ni' combo on an actually-barren system).
Thus, I added a fix_pop debug option, to fix those problems as their respective starlines were parsed, which did the following: approx 25,700 parsing complaints as at status quo; approx 10,800 parsing complaints as at this PR; that giving a 57.9% net reduction in the number of complaints filling up the logs in a full-orchestra run, and (big surprise) reducing crap buildup by ~1.8 megabytes.
You can view, comment on, or merge this pull request online at:
https://github.com/makhidkarun/traveller_pyroute/pull/107 Commit Summary
- 8fba66f https://github.com/makhidkarun/traveller_pyroute/pull/107/commits/8fba66fc0f5185b2228bcbb5968daca0d0286492 Bundle up pop-code checks/fixen
- 53e9744 https://github.com/makhidkarun/traveller_pyroute/pull/107/commits/53e97440e4612838531021c9ae1613b9535c2f48 Expose fix-pop debug option
- 1a62331 https://github.com/makhidkarun/traveller_pyroute/pull/107/commits/1a62331259c25ee685df6b02af4d369d3699ada2 Move pop-code fixes before checks
- d844546 https://github.com/makhidkarun/traveller_pyroute/pull/107/commits/d8445464ecb32f224691ba1d806b5ca2e8464c12 Fix economic extension under fix_pop
File Changes
(6 files https://github.com/makhidkarun/traveller_pyroute/pull/107/files )
- M PyRoute/DeltaStar.py https://github.com/makhidkarun/traveller_pyroute/pull/107/files#diff-5a872c9217f5dbd2672975671f9a9d20304c42f240e4f9172fd28782095e04f1 (4)
- M PyRoute/Galaxy.py https://github.com/makhidkarun/traveller_pyroute/pull/107/files#diff-47b211a3ce81171a6d9d19bc3ae69103deeb220f0a76663eb48cd8f06b77414a (4)
- M PyRoute/Inputs/ParseStarInput.py https://github.com/makhidkarun/traveller_pyroute/pull/107/files#diff-94d79087b2e4d0f0a1b16dde9c5359e13ff40d99d6f858a74c1ffb81a686f555 (9)
- M PyRoute/Star.py https://github.com/makhidkarun/traveller_pyroute/pull/107/files#diff-2ed67943935bd534de3aa1ac491aea583f9c3015ceee762f77b680b2bcb0e6d3 (34)
- M PyRoute/TradeCodes.py https://github.com/makhidkarun/traveller_pyroute/pull/107/files#diff-abfe429c5d989c64847a67e7d74dfd1eabcd5405bcecad45df5a5f06d07c94bc (34)
- M PyRoute/route.py https://github.com/makhidkarun/traveller_pyroute/pull/107/files#diff-bd34be6208233bb1140a3f911c18fa6439698ef2fc72866aceedd6a83a817afd (5)
Patch Links:
- https://github.com/makhidkarun/traveller_pyroute/pull/107.patch
- https://github.com/makhidkarun/traveller_pyroute/pull/107.diff
— Reply to this email directly, view it on GitHub https://github.com/makhidkarun/traveller_pyroute/pull/107, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB7KVBSEAPDPV6ZMI3GLXS3Y3OPODAVCNFSM6AAAAABFUVOWXKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIZDEMBSHE2TGMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I got tired of 3 megabytes+ of crap filling up the logs of full-orchestra charted space runs, which I generally have to leave running overnight.
A shufti showed ~60% of those on the Dec 23, 2023 TravellerMap data were invalid/missing population trade code complaints (including the infamous 'Ba Lo Ni' combo on actually-barren systems).
Thus, I added a fix_pop debug option, to fix those problems as their respective starlines were parsed, which did the following: approx 25,700 parsing complaints as at status quo; approx 10,770 parsing complaints as at this PR; that giving a 58.0% net reduction in the number of complaints filling up the logs in a full-orchestra run, and (big surprise) reducing crap buildup by ~1.8 megabytes.
The remaining 1,081 complaints break down as:
Disallowed residual trade code - 38 Importance mismatch - 11 Acceptance mismatch - 927 Symbols mismatch - 2 Misc - 103