News for hackers. Stuff that matters.
Re:How not to structure database-backed web apps: performanc... by mklepaczewski on Thursday June 28, 2018 @01:48PM (#17419010)
This is not necessarily true. You would be surprised how many absolutely trivial performance issues can be found in almost every project. Sometimes it's really just about moving computation of a constant value out of a 'for' loop.
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.
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.
Re:How not to structure database-backed web apps: performanc... by sut-123 on Saturday July 14, 2018 @06:20PM (#17532704)
Thanks a lot for your explanation.