Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance optimizations and refactoring #59

Merged
merged 17 commits into from
Jul 18, 2023
Merged

Conversation

yaricom
Copy link
Owner

@yaricom yaricom commented Jul 26, 2022

  • Refactored max activation depth estimation to be more effective
  • Implemented lazy genesis of the organism's phenotype to reduce CPU usage during reproduction
  • Changed species sorting order implementation to exclude phenotype complexity from consideration
  • Changed organisms sorting order to be depended only of the fitness
  • Optimized speed of matting loops by avoiding unnecessary runs of inner loops in some cases

@codecov
Copy link

codecov bot commented Jul 26, 2022

Codecov Report

Merging #59 (f003121) into master (ac60a6c) will increase coverage by 0.87%.
The diff coverage is 76.51%.

❗ Current head f003121 differs from pull request most recent head 9cc0a96. Consider uploading reports for the commit 9cc0a96 to get more accurate results

@@            Coverage Diff             @@
##           master      #59      +/-   ##
==========================================
+ Coverage   67.57%   68.44%   +0.87%     
==========================================
  Files          38       39       +1     
  Lines        4459     4532      +73     
==========================================
+ Hits         3013     3102      +89     
+ Misses       1048     1024      -24     
- Partials      398      406       +8     
Impacted Files Coverage Δ
experiment/experiment_execute.go 67.69% <ø> (ø)
neat/genetics/common.go 94.11% <ø> (-5.89%) ⬇️
neat/genetics/gene.go 76.92% <ø> (ø)
neat/genetics/genome_compatibility.go 80.43% <ø> (ø)
neat/genetics/genome_writer.go 73.24% <ø> (ø)
neat/genetics/mimo_gene.go 73.07% <ø> (ø)
neat/genetics/population_epoch.go 63.50% <ø> (ø)
neat/genetics/population_io.go 55.93% <ø> (ø)
neat/genetics/species.go 53.04% <0.00%> (+2.22%) ⬆️
neat/network/common.go 100.00% <ø> (ø)
... and 21 more

@yaricom yaricom merged commit e011e00 into master Jul 18, 2023
3 checks passed
@yaricom yaricom deleted the performance-optimizations branch July 18, 2023 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant