Massive performance decrease in Software Rendering

[quote=“lucem”] try { Jules.getInstance().addItemsToWorkQueue(WorkItems items); } catch (JulesOverloadedException e) { Forum.getAnyThread().post(BitchingAroundMessage m); throw(e); }

Pretty much what i read from the last couple posts.[/quote]

Here’s the real algorithm:

void Jules::handleMoaningUser (Request req) { if (thingsToDo.isEmpty() || req.isEmergency() || req.isReallyEasyToDo() || req.user.hasProvidedSuggestedFix()) fix (req); else if (req.getNumberOfPeopleWhoWouldNotice() > 1 || req.isImportant()) thingsToDo.add (req); }

shouldn’t it be a const ref to avoid the copying overhead…?

[quote=“jules”]void Jules::handleMoaningUser (Request req) { if (thingsToDo.isEmpty() || req.isEmergency() || req.isReallyEasyToDo() || req.user.hasProvidedSuggestedFix()) fix (req); else if (req.getNumberOfPeopleWhoWouldNotice() > 1 || req.isImportant()) thingsToDo.add (req); } [/quote]

For fucks sake aren’t you busy enough that you have real code to write!?!?!! :roll: :cry: :mrgreen:

[quote=“TheVinn”][quote=“jules”]void Jules::handleMoaningUser (Request req) { if (thingsToDo.isEmpty() || req.isEmergency() || req.isReallyEasyToDo() || req.user.hasProvidedSuggestedFix()) fix (req); else if (req.getNumberOfPeopleWhoWouldNotice() > 1 || req.isImportant()) thingsToDo.add (req); } [/quote]

For fucks sake aren’t you busy enough that you have real code to write!?!?!! :roll: :cry: :mrgreen:[/quote]

For me, it was quicker to write that than explain the same thing in english :slight_smile:

Anyways, this thread is old, tired and rambling, and it’s time to lock it. Constructive discussion elsewhere please!