Conversation
…from Worker to Ant
…sing the stored states Changed states array from byte to short so that 8-bit states + 1-bit direction can fit Plans: - Implement better period finding algorithm - Reduce size of states array - Maybe encode two states in 3 bytes (s1,s2,dir1*2^dir2)
Cleaned Client class Packets are now writen synchronously to avoid packet collision
Reduced size of states array from up to 200M to 5M Temporary code in Ant to fix small periods (<1M) Synchronize wip state: wip.add(seed[3]) to getSeedIndex Save and load functions for result soup Ant factory to create ant instance from its type id Log only new highways on soups (info stored in ResultSet) Removed hardcoded chunk size in patterns Moved map from worker to ant Fixed pattern size in packet for soup results sending radius instead of diameter ResultRulesTest for development ResultRulesRecompute to obtain new data about rules type id in Result Result soup now stores wip indices to avoid skipping some indices when restoring progress from file Now worker creates new ant object every simulation because i think i dont reset the ant state properly and can lead to non deterministic results
Now results own the worker instead of the other way around Reverted ResultRules serialization to pre-histograms Now WorkerManager owns Results instead of Workers Method to get specific result instance (ResultRules) in worker manager
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refactor
Added new work type: soups
Added new highway parameter: states histogram
Changed map from byte[] to short[] to allow large histograms calculations
Reduced period computation states array to compensate for larger map size