Skip to content

Conversation

@Mjaethers
Copy link
Contributor

Motivation and Context

Fixes #1272.
In the model package many structs have methods on both value and pointer receivers. Having mixed receivers is for consistencies sake not ideal, but since many of these structs are also quite large, and using value receivers implies copying data, using pointer receivers would be slightly more performant.

Description

Any value receivers were changed to pointer receivers, usually this was as simple as changing the signature. Any superfluous receivers were also removed.

Steps for Testing

Nothing should have changed.

Screenshots

@github-actions
Copy link

github-actions bot commented Feb 1, 2024

Your Testserver will be ready at https://1325.test.live.mm.rbg.tum.de in a few minutes.

Logins
Kurs1 Kurs2 Kurs3 Kurs4
public public loggedin enrolled
prof1 prof1 prof2 prof1
prof2
student1
student2
student3
student1
student2
student2
student3
student1
student2

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.

All methods on models should use pointer receivers

2 participants