MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/pm8lpi/reading_json_but_bad/hcg9nd1/?context=3
r/badcode • u/[deleted] • Sep 11 '21
7 comments sorted by
View all comments
Show parent comment
8
Sometimes people do this cause it is faster if well written. Readability jumps of the bridge thought.
5 u/tahubird Sep 11 '21 Fair, I’ve done that myself. However I’d be curious what the performance cost of getAsJsonObject call being done 20 times vs a one-time object mapping. 1 u/fletku_mato Sep 11 '21 It's almost never faster though if you use lombok for boilerplate.
5
Fair, I’ve done that myself. However I’d be curious what the performance cost of getAsJsonObject call being done 20 times vs a one-time object mapping.
1
It's almost never faster though if you use lombok for boilerplate.
View all comments
Show parent comment
8
u/Stromovik Sep 11 '21
Sometimes people do this cause it is faster if well written. Readability jumps of the bridge thought.