Modify

Opened 11 years ago

Closed 11 years ago

#8986 closed enhancement (fixed)

[patch] Data loading/bbox index counting optimization

Reported by: shinigami Owned by: team
Priority: major Milestone:
Component: Core Version:
Keywords: performance Cc:

Description

I made few small changes in counting index for bbox and given level, on my testing data and in profiler it seems to run about 6-7x faster now, speedup when loading data is about 20%.

Attachments (1)

quadbucketsindex.diff (5.3 KB ) - added by shinigami 11 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 by Don-vip, 11 years ago

Nice :) can you also write javadoc for public methods ? Thanks :)

comment:2 by Don-vip, 11 years ago

Summary: Data loading/bbox index counting optimization[patch] Data loading/bbox index counting optimization

comment:3 by Don-vip, 11 years ago

Keywords: performance added
Priority: normalmajor

by shinigami, 11 years ago

Attachment: quadbucketsindex.diff added

comment:4 by shinigami, 11 years ago

It's there:).

comment:5 by AlfonZ, 11 years ago

If I wanted to be nitpicky, I'd say it should be public static int instead of static public int (in regards to modifiers order coding style enhancement) ;)

comment:6 by Don-vip, 11 years ago

How do you measure performance gain ? I'm of course ok to apply this patch but I would be curious to measure it myself before :)

comment:7 by shinigami, 11 years ago

I run it in profiler and loaded same files (used files from around my city, all ~30000 nodes with some overlaping). Load time felt from 50s to 40s (I have used full method tracking, so it was slow), index counting parts from about 12s to 2s. But it is is biased by profiler overhead..

comment:8 by Don-vip, 11 years ago

alright :)

comment:9 by Don-vip, 11 years ago

Resolution: fixed
Status: newclosed

In 6171/josm:

fix #8986 - Data loading/bbox index counting optimization (patch by shinigami) + code cleanup in Quad* classes

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.