This PR works mostly by caching every reflection info for Hospitality within the patch class, reducing performance overheads.
For the field access (CompGuest#bed), see https://stackoverflow.com/a/38538377.
Results
The very first patch call takes around 10ms, which is 97% reduction.
Any subsequent calls takes even less time, highest being 2ms, and average, less than 1ms.
Tests were done in a small scale, so it would be a good idea to test it on your side too.
Fixes #10
This PR works mostly by caching every reflection info for Hospitality within the patch class, reducing performance overheads. For the field access (
CompGuest#bed
), see https://stackoverflow.com/a/38538377.Results
Tests were done in a small scale, so it would be a good idea to test it on your side too.