gzdwsu / RaiderSMA

Murphy's Wrestling Tournament Manager. Design of Info Tech Sys. Secondary Project.
1 stars 17 forks source link

Object churning issue in Main.java (Claimed) #5

Open JamesKillmonger opened 4 years ago

JamesKillmonger commented 4 years ago

Location: src/wrestlingtournamentcli/Main.java & src/DataClasses/Wrestler.java

Deficiency: The way strings are being used is anti-memory management friendly and will cause Object Churning.

Reason: String Literals float around the memory even when not being used until the program is finally shut down. When looking at lines 102-116 you can get a good idea of how this can and will be a problem. It will slow things down overtime. Same deal with Wrestler.java lines 106-128.

JamesKillmonger commented 4 years ago

I James Walter Wright have claimed this issue in both files for the project. Any other claim is forbidden.