Re:How not to structure database-backed web apps: performanc...
by soberhoff on Thursday June 28, 2018 @06:25PM
(#17420980)
I once sped up a program by 90% by turning `new String("foo")` into just `"foo"`. The project was still rotten though, so it ultimately didn't matter.
[ Parent
| on HN ]
Re:How not to structure database-backed web apps: performanc...
by sut-123 on Wednesday July 04, 2018 @04:12PM
(#17459232)
Your example sounds interesting, could you explain more
Re:How not to structure database-backed web apps: performanc...
by soberhoff on Friday July 13, 2018 @09:15AM
(#17522642)
Are you familiar with Java? If you use just `"foo"`, then the string will be interned and reused. If you use `new String("foo")`, each call creates a new copy on the heap. This call was inside a very hot loop, thus eating almost all the application's runtime.