Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Reduce allocation of temporary strings #2929

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments
Closed

Reduce allocation of temporary strings #2929

openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments

Comments

@openstreetmap-trac
Copy link

Reporter: strk
[Submitted to the original trac issue database at 4.23pm, Tuesday, 4th May 2010]

The attached patch makes creation of String objects explicit rather than implicit
(any "string".method() call implicitly creates an object) so that the same object is
passed around rather than a new one is created.

Reducing object allocations, especially in loops, plays nicer with Gnash.
See https://savannah.gnu.org/bugs/?func=detailitem&item_id=28009 for the details.

@openstreetmap-trac
Copy link
Author

Author: strk
[Added to the original trac issue at 3.03pm, Tuesday, 13th July 2010]

Richard, planning to commit the patch ?

@openstreetmap-trac
Copy link
Author

Author: Richard
[Added to the original trac issue at 3.51pm, Tuesday, 13th July 2010]

I am, yes, but haven't looked at P1 for a while yet as I've been concentrating on P2 (and haven't yet figured out the whole git stuff needed to file new versions of the P1 swf). Will try and get a minute to do so asap.

@openstreetmap-trac
Copy link
Author

Author: iandees
[Added to the original trac issue at 7.36pm, Monday, 9th September 2013]

Cleaning aging tickets.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant