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

Reduce allocation of temporary strings #2929

@openstreetmap-trac

Description

@openstreetmap-trac

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.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions